Merge pull request #542 from bebehei/hotfix1

Wakeup also for infinite notifs when set show_age_threshold
This commit is contained in:
Nikos Tsipinakis 2018-09-08 19:51:42 +03:00 committed by GitHub
commit e5dd80b9db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,7 +410,7 @@ gint64 queues_get_next_datachange(gint64 time)
if (age > settings.show_age_threshold)
// sleep exactly until the next shift of the second happens
sleep = MIN(sleep, ((G_USEC_PER_SEC) - (age % (G_USEC_PER_SEC))));
else if (ttl > settings.show_age_threshold)
else if (n->timeout == 0 || ttl > settings.show_age_threshold)
sleep = MIN(sleep, settings.show_age_threshold);
}
}