[svn-commits] file: trunk r116471 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 14 16:54:04 CDT 2008


Author: file
Date: Wed May 14 16:54:03 2008
New Revision: 116471

URL: http://svn.digium.com/view/asterisk?view=rev&rev=116471
Log:
Fix pedanticness.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=116471&r1=116470&r2=116471
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed May 14 16:54:03 2008
@@ -6240,9 +6240,9 @@
 			if (sip_pvt_trylock(p)) {
 				ao2_unlock(dialogs);
 				usleep(1);
-				ao2_lock(dialogs);
 				goto restartsearch;
 			}
+			ao2_unlock(dialogs);
 			return p;
 		}
 		ao2_unlock(dialogs);




More information about the svn-commits mailing list