Explorar o código

Merge pull request #955 from grumvalski/serial_suspend

tm: reset T_ASYNC_CONTINUE flag in t_suspend
Federico Cabiddu %!s(int64=8) %!d(string=hai) anos
pai
achega
c7212940b7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/modules/tm/t_suspend.c

+ 2 - 1
src/modules/tm/t_suspend.c

@@ -143,7 +143,8 @@ int t_suspend(struct sip_msg *msg,
 	*hash_index = t->hash_index;
 	*label = t->label;
 
-
+	/* reset the continue flag to be able to suspend in a failure route */
+	t->flags &= ~T_ASYNC_CONTINUE;
 
 	/* backup some extra info that can be used in continuation logic */
 	t->async_backup.backup_route = get_route_type();