Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 May 2008 17:14:22 +0000 (17:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 May 2008 17:14:22 +0000 (17:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_smdi.c

index aa86b18..97b58b5 100644 (file)
@@ -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;