Browse Source

async: fixed the condition to detect last action in route block

- reported by Inaki Baz Castillo
Daniel-Constantin Mierla 14 years ago
parent
commit
6de46a35f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/async/async_mod.c

+ 1 - 1
modules/async/async_mod.c

@@ -145,7 +145,7 @@ static int w_async_sleep(struct sip_msg* msg, char* sec, char* str2)
 	}
 	if(ap->type==0)
 	{
-		if(ap->u.paction==NULL || ap->u.paction->next!=NULL)
+		if(ap->u.paction==NULL || ap->u.paction->next==NULL)
 		{
 			LM_ERR("cannot be executed as last action in a route block\n");
 			return -1;