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
1.6.1
Russell Bryant 17 years ago
parent 8722b3b5ae
commit dcbc0aab3f

@ -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;

Loading…
Cancel
Save