Browse code

dialog: avoid useless re-entrant locking when linking the new dialog

Daniel-Constantin Mierla authored on 02/10/2015 08:57:50
Showing 1 changed files
... ...
@@ -847,7 +847,7 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
847 847
 	dlg->vars = get_local_varlist_pointer(req, 1);
848 848
 
849 849
 	/* after dlg_search() slot was kept locked */
850
-	link_dlg(dlg, 0, 0);
850
+	link_dlg(dlg, 0, 1);
851 851
 	/* unlock after dlg_search() */
852 852
 	dlg_hash_release(&callid);
853 853