TT#98901 allow NULL send_now timerthread function

Change-Id: Ic5e9b97780f787122fe12fb31fdd4093f26587d6
pull/1116/head
Richard Fuchs 5 years ago
parent 6ae33a4b85
commit 4519db78bd

@ -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

Loading…
Cancel
Save