mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
don't check 'acknowledged' for setting lastdisc, since it's guaranteed to be zero at this point (issue #5254)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -753,7 +753,7 @@ static int agent_hangup(struct ast_channel *ast)
|
|||||||
/* If they're dead, go ahead and hang up on the agent now */
|
/* If they're dead, go ahead and hang up on the agent now */
|
||||||
if (!ast_strlen_zero(p->loginchan)) {
|
if (!ast_strlen_zero(p->loginchan)) {
|
||||||
/* Store last disconnect time */
|
/* Store last disconnect time */
|
||||||
if (p->wrapuptime && p->acknowledged)
|
if (p->wrapuptime)
|
||||||
p->lastdisc = ast_tvadd(ast_tvnow(), ast_samp2tv(p->wrapuptime, 1000));
|
p->lastdisc = ast_tvadd(ast_tvnow(), ast_samp2tv(p->wrapuptime, 1000));
|
||||||
else
|
else
|
||||||
p->lastdisc = ast_tv(0,0);
|
p->lastdisc = ast_tv(0,0);
|
||||||
|
Reference in New Issue
Block a user