浏览代码

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

Daniel-Constantin Mierla 11 年之前
父节点
当前提交
072d314828
共有 1 个文件被更改,包括 2 次插入2 次删除
  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");