Fix pedanticness.
authorJoshua Colp <jcolp@digium.com>
Wed, 14 May 2008 21:54:03 +0000 (21:54 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 14 May 2008 21:54:03 +0000 (21:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116471 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c57b1d9..c86bf07 100644 (file)
@@ -6240,9 +6240,9 @@ restartsearch:
                        if (sip_pvt_trylock(p)) {
                                ao2_unlock(dialogs);
                                usleep(1);
-                               ao2_lock(dialogs);
                                goto restartsearch;
                        }
+                       ao2_unlock(dialogs);
                        return p;
                }
                ao2_unlock(dialogs);