Browse Source

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

Daniel-Constantin Mierla 11 years ago
parent
commit
072d314828
1 changed files with 2 additions and 2 deletions
  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");