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:
Kevin P. Fleming
2005-10-05 21:27:38 +00:00
parent 350aaac04b
commit 2aa0434048

View File

@@ -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 (!ast_strlen_zero(p->loginchan)) {
/* Store last disconnect time */
if (p->wrapuptime && p->acknowledged)
if (p->wrapuptime)
p->lastdisc = ast_tvadd(ast_tvnow(), ast_samp2tv(p->wrapuptime, 1000));
else
p->lastdisc = ast_tv(0,0);