diff --git a/src/switch_time.c b/src/switch_time.c index a90d1a863e..46a3a08712 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -431,7 +431,7 @@ static switch_status_t timerfd_start_interval(interval_timer_t *it, int interval return SWITCH_STATUS_GENERR; } - if ((r = read(fd, &exp, sizeof(exp)) < 0)) { + if ((r = read(fd, &exp, sizeof(exp))) < 0) { close(fd); return SWITCH_STATUS_GENERR; }