浏览代码

Merge pull request #955 from grumvalski/serial_suspend

tm: reset T_ASYNC_CONTINUE flag in t_suspend
Federico Cabiddu 8 年之前
父节点
当前提交
c7212940b7
共有 1 个文件被更改,包括 2 次插入1 次删除
  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();