diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 17:14:22 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 17:14:22 +0000 |
commit | 85062e5137aba4e9dd1ca13c46b08ae7cb507924 (patch) | |
tree | 423d19277f1dd7631e8e33be7dfd48f71dea08f6 | |
parent | f9717297bb3a0b198395952f36f50874d79db4e7 (diff) |
Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115847 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_smdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c index aa86b188d..97b58b5db 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -420,6 +420,8 @@ static void *smdi_message_wait(struct ast_smdi_interface *iface, int timeout, long diff = 0; void *msg; + start = ast_tvnow(); + while (diff < timeout) { struct timespec ts = { 0, }; struct timeval tv; |