summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-11 20:46:25 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-11 20:46:25 +0000
commiteb397f08dfffe95774c602b30891548168da779f (patch)
tree9c436d2b20fbb8207a7c2a2a54968c3d48cda344 /res
parent8079f53c015b4932fc7ae9b42b0e7a516667b74f (diff)
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
Diffstat (limited to 'res')
-rwxr-xr-xres/res_features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index d9cccc67b..c6fa6eeb5 100755
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -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*/