Ver código fonte

http_async_client: don't stop routing script execution for a POST query if transaction is not suspended

Federico Cabiddu 9 anos atrás
pai
commit
eb6b48f03b
1 arquivos alterados com 1 adições e 5 exclusões
  1. 1 5
      modules/http_async_client/http_async_client_mod.c

+ 1 - 5
modules/http_async_client/http_async_client_mod.c

@@ -487,11 +487,7 @@ static int w_http_async_post(sip_msg_t *msg, char *query, char* post, char* rt)
 		return -1;
 	}
 
-	if(async_send_query(msg, &sdata, &post_data, act)<0)
-		return -1;
-
-	/* force exit in config */
-	return 0;
+	return async_send_query(msg, &sdata, &post_data, act);
 }
 
 #define _IVALUE_ERROR(NAME) LM_ERR("invalid parameter '" #NAME "' (must be a number)\n")