Remove gratuitous race
authorMark Spencer <markster@digium.com>
Mon, 8 Dec 2003 23:42:07 +0000 (23:42 +0000)
committerMark Spencer <markster@digium.com>
Mon, 8 Dec 2003 23:42:07 +0000 (23:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1840 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index c2f656c..e778716 100755 (executable)
@@ -996,9 +996,9 @@ static int iax2_predestroy(int callno)
                if (usecnt < 0) 
                        ast_log(LOG_WARNING, "Usecnt < 0???\n");
                ast_mutex_unlock(&usecnt_lock);
-               ast_update_use_count();
        }
        ast_mutex_unlock(&iaxsl[callno]);
+       ast_update_use_count();
        return 0;
 }