improve debug

When we fail to read the eventfd, don't try to use the value.
This commit is contained in:
Wim Taymans 2020-05-20 13:33:55 +02:00
parent 1b2f64917e
commit a898f21c87
3 changed files with 3 additions and 4 deletions

View file

@ -1004,8 +1004,7 @@ static inline uint32_t cycle_run(struct client *c)
pw_log_warn(NAME" %p: read failed %m", c);
if (errno == EWOULDBLOCK)
return 0;
}
if (SPA_UNLIKELY(cmd > 1))
} else if (SPA_UNLIKELY(cmd > 1))
pw_log_warn(NAME" %p: missed %"PRIu64" wakeups", c, cmd - 1);
clock_gettime(CLOCK_MONOTONIC, &ts);