From dcbc0aab3f0ab632ac090729ec68550196298fa0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 13 May 2008 17:14:22 +0000 Subject: [PATCH] Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115847 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_smdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/res/res_smdi.c b/res/res_smdi.c index aa86b188d7..97b58b5dba 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;