Browse code

Revert "dialog: Don't destroy dialogs in timer while they're still being referenced"

This reverts commit 3eef4c8be5cc2b6ccba993a62f8c8039d1adf7da.

Reintroduces possible segfault in cleanup routine.

Alex Hermann authored on 04/11/2014 13:24:46
Showing 1 changed files
... ...
@@ -242,7 +242,7 @@ int dlg_clean_run(ticks_t ti)
242 242
 		while (dlg) {
243 243
 			tdlg = dlg;
244 244
 			dlg = dlg->next;
245
-			if(tdlg->state==DLG_STATE_UNCONFIRMED && tdlg->init_ts<tm-300 && tdlg->ref<=1) {
245
+			if(tdlg->state==DLG_STATE_UNCONFIRMED && tdlg->init_ts<tm-300) {
246 246
 				/* dialog in early state older than 5min */
247 247
 				LM_NOTICE("dialog in early state is too old (%p ref %d)\n",
248 248
 						tdlg, tdlg->ref);