tvh_mutex_unlock(&mtimer_lock);
while (tvheadend_is_running()) {
- now = mdispatch_clock_update();
-
/* Global monoclock timers */
-
+ now = mdispatch_clock_update();
next = now + sec2mono(3600);
while (1) {
tvh_mutex_lock(>imer_lock);
gti = LIST_FIRST(>imers);
if (gti == NULL || gti->gti_expire > now) {
- if (gti) {
+ if (gti)
ts.tv_sec = gti->gti_expire;
- tvh_mutex_unlock(>imer_lock);
- }
+ tvh_mutex_unlock(>imer_lock);
break;
}