From 4519db78bde03d7e4a0cecb7a7837cc5f4f4dd7e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 30 Oct 2020 08:55:28 -0400 Subject: [PATCH] TT#98901 allow NULL send_now timerthread function Change-Id: Ic5e9b97780f787122fe12fb31fdd4093f26587d6 --- daemon/timerthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/timerthread.c b/daemon/timerthread.c index 8e8a972b3..3e06b847f 100644 --- a/daemon/timerthread.c +++ b/daemon/timerthread.c @@ -185,7 +185,7 @@ void *timerthread_queue_new(const char *type, size_t size, void timerthread_queue_push(struct timerthread_queue *ttq, struct timerthread_queue_entry *ttqe) { // can we send immediately? - if (!timerthread_queue_run_one(ttq, ttqe, ttq->run_now_func)) + if (ttq->run_now_func && timerthread_queue_run_one(ttq, ttqe, ttq->run_now_func) == 0) return; // queue for sending