Forráskód Böngészése

core: moved debug message about async task init after checking if it is enabled

Daniel-Constantin Mierla 11 éve
szülő
commit
072d314828
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      async_task.c

+ 2 - 2
async_task.c

@@ -110,11 +110,11 @@ int async_task_child_init(int rank)
 	int pid;
 	int i;
 
-	LM_DBG("child initializing asynk task framework\n");
-
 	if(_async_task_workers<=0)
 		return 0;
 
+	LM_DBG("child initializing asynk task framework\n");
+
 	if (rank==PROC_INIT) {
 		if(async_task_init_sockets()<0) {
 			LM_ERR("failed to initialize tasks sockets\n");