Browse Source

TT#98901 allow NULL send_now timerthread function

Change-Id: Ic5e9b97780f787122fe12fb31fdd4093f26587d6
pull/1116/head
Richard Fuchs 5 years ago
parent
commit
4519db78bd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/timerthread.c

+ 1
- 1
daemon/timerthread.c View File

@ -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) { void timerthread_queue_push(struct timerthread_queue *ttq, struct timerthread_queue_entry *ttqe) {
// can we send immediately? // 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; return;
// queue for sending // queue for sending


Loading…
Cancel
Save