Browse code

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

Daniel-Constantin Mierla authored on 18/07/2014 14:00:42
Showing 1 changed files
... ...
@@ -110,11 +110,11 @@ int async_task_child_init(int rank)
110 110
 	int pid;
111 111
 	int i;
112 112
 
113
-	LM_DBG("child initializing asynk task framework\n");
114
-
115 113
 	if(_async_task_workers<=0)
116 114
 		return 0;
117 115
 
116
+	LM_DBG("child initializing asynk task framework\n");
117
+
118 118
 	if (rank==PROC_INIT) {
119 119
 		if(async_task_init_sockets()<0) {
120 120
 			LM_ERR("failed to initialize tasks sockets\n");