Avoid a spinloop waiting for zero ms.

This commit is contained in:
Ian Gulliver
2016-02-21 16:55:31 -08:00
parent c5a87e89a4
commit a48c4a24f5

View File

@@ -109,7 +109,7 @@ static void *wakeup_main(void *arg) {
}
uint64_t now = wakeup_get_time_ms();
while (head && head->request.absolute_time_ms < now) {
while (head && head->request.absolute_time_ms <= now) {
close(head->request.fd);
struct wakeup_entry *next = head->next;
free(head);