Browse code

tm: t_suspend.c - do not t_continue with reply if suspended

Giacomo Vacca authored on 30/04/2021 17:32:00
Showing 1 changed files
... ...
@@ -401,6 +401,12 @@ int t_continue_helper(unsigned int hash_index, unsigned int label,
401 401
 			exec_post_script_cb(t->uac[branch].reply, cb_type);
402 402
 		}
403 403
 
404
+		if (t->flags & T_ASYNC_SUSPENDED) {
405
+			LM_DBG("The transaction is suspended, so not continuing\n");
406
+			set_t(backup_T, backup_T_branch);
407
+			return 0;
408
+		}
409
+
404 410
 		LM_DBG("restoring previous environment\n");
405 411
 		faked_env( t, 0, 1);
406 412