Browse Source

TT#14008 suppress stray redis log warnings

Change-Id: Ice39f3e7ccfaae235db83d0839351c20369bbd6e
pull/1093/head
Richard Fuchs 5 years ago
parent
commit
377f088254
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      daemon/poller.c

+ 4
- 1
daemon/poller.c View File

@ -526,7 +526,10 @@ void poller_timer_loop(void *d) {
now:
gettimeofday(&rtpe_now, NULL);
if (rtpe_redis_write && (rtpe_redis_write->async_last + rtpe_config.redis_delete_async_interval <= rtpe_now.tv_sec)) {
if (rtpe_redis_write && rtpe_redis_write->async_ev &&
(rtpe_redis_write->async_last + rtpe_config.redis_delete_async_interval
<= rtpe_now.tv_sec))
{
redis_async_event_base_action(rtpe_redis_write, EVENT_BASE_LOOPBREAK);
rtpe_redis_write->async_last = rtpe_now.tv_sec;
}


Loading…
Cancel
Save