--- app_queue.c.orig Sat Feb 12 19:29:33 2005 +++ app_queue.c Sat Feb 12 19:30:58 2005 @@ -1557,7 +1557,7 @@ } } res2 |= ast_autoservice_stop(qe->chan); - if (res2) { + if (peer->_softhangup) { /* Agent must have hung up */ ast_log(LOG_WARNING, "Agent on %s hungup on the customer. They're going to be pissed.\n", peer->name); ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "AGENTDUMP", "%s", ""); @@ -1570,7 +1570,7 @@ queuename, qe->chan->uniqueid, peer->name, member->interface); } ast_hangup(peer); - return -1; + return; } } /* Stop music on hold */