Explorar o código

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

Daniel-Constantin Mierla %!s(int64=10) %!d(string=hai) anos
pai
achega
02fa3bf1b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/dialog/dlg_handlers.c

+ 1 - 1
modules/dialog/dlg_handlers.c

@@ -847,7 +847,7 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
 	dlg->vars = get_local_varlist_pointer(req, 1);
 
 	/* after dlg_search() slot was kept locked */
-	link_dlg(dlg, 0, 0);
+	link_dlg(dlg, 0, 1);
 	/* unlock after dlg_search() */
 	dlg_hash_release(&callid);