[sr-dev] git:master:8893e6f2: core: async task logging on no callback

Daniel-Constantin Mierla miconda at gmail.com
Tue May 26 14:57:42 CEST 2020


Module: kamailio
Branch: master
Commit: 8893e6f2b30577b065f11a406faf5c5935714f78
URL: https://github.com/kamailio/kamailio/commit/8893e6f2b30577b065f11a406faf5c5935714f78

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-05-26T09:24:17+02:00

core: async task logging on no callback

---

Modified: src/core/async_task.c

---

Diff:  https://github.com/kamailio/kamailio/commit/8893e6f2b30577b065f11a406faf5c5935714f78.diff
Patch: https://github.com/kamailio/kamailio/commit/8893e6f2b30577b065f11a406faf5c5935714f78.patch

---

diff --git a/src/core/async_task.c b/src/core/async_task.c
index ee50412790..1045e0ab41 100644
--- a/src/core/async_task.c
+++ b/src/core/async_task.c
@@ -280,6 +280,8 @@ int async_task_run(int idx)
 			LM_DBG("task executed [%p] (%p/%p)\n", (void*)ptask,
 					(void*)ptask->exec, (void*)ptask->param);
 			ptask->exec(ptask->param);
+		} else {
+			LM_DBG("task with no callback function - ignoring\n");
 		}
 		shm_free(ptask);
 	}




More information about the sr-dev mailing list