From 85062e5137aba4e9dd1ca13c46b08ae7cb507924 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 13 May 2008 17:14:22 +0000 Subject: 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 --- res/res_smdi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res') 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; -- cgit v1.2.3