mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -964,7 +964,7 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call
|
||||
|
||||
/* see if the timeout has been violated */
|
||||
gettimeofday(&ended,NULL);
|
||||
if(ast_tvdiff_ms(&started, &ended) > timeout) {
|
||||
if(ast_tvdiff_ms(&ended, &started) > timeout) {
|
||||
state = AST_CONTROL_UNHOLD;
|
||||
ast_log(LOG_NOTICE, "We exceeded our AT-timeout\n");
|
||||
break; /*doh! timeout*/
|
||||
|
Reference in New Issue
Block a user