From: Russell Bryant Date: Tue, 13 May 2008 17:14:22 +0000 (+0000) Subject: Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk. X-Git-Tag: 1.6.2.0-beta1~2264 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcbc0aab3f0ab632ac090729ec68550196298fa0;p=thirdparty%2Fasterisk.git 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 --- 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;