Explorar el Código

tm: fix the multiple t_suspend+t_continue scenario

When t_suspend() was called in the route block executed
by t_continue(), the function did not recognize the newly
added blind UAC and claimed that there is no new branch added.
This resulted in the transaction being killed by t_continue().
Miklos Tirpak hace 13 años
padre
commit
9ae149ba25
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      modules/tm/t_suspend.c

+ 1 - 3
modules/tm/t_suspend.c

@@ -210,9 +210,7 @@ int t_continue(unsigned int hash_index, unsigned int label,
 			branch < t->nr_of_outgoings;
 			branch++
 		) {
-			if ((t->uac[branch].request.buffer != NULL)
-				&& (t->uac[branch].last_received < 200)
-			)
+			if (t->uac[branch].last_received < 200)
 				break;
 		}