Fix locking issue
authorMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 15:45:09 +0000 (15:45 +0000)
committerMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 15:45:09 +0000 (15:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@844 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 754acd8..71e4920 100755 (executable)
@@ -4499,6 +4499,7 @@ retrylock:
                        ast_pthread_mutex_unlock(&p->lock);
                        /* Sleep infintismly short amount of time */
                        usleep(1);
+                       ast_pthread_mutex_lock(&p->lock);
                        goto retrylock;
                }
                memcpy(&p->recv, &sin, sizeof(p->recv));