Skip to content

Commit 9530bc5

Browse files
authored
Merge pull request #53 from ndsl7109256/gif
Fix timeout processing order
2 parents 9efea6e + e1392a6 commit 9530bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timeout.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ static twin_order_t _twin_timeout_order(twin_queue_t *a, twin_queue_t *b)
2828
const twin_timeout_t *bt = (twin_timeout_t *) b;
2929

3030
if (twin_time_compare(at->time, <, bt->time))
31-
return TWIN_BEFORE;
32-
if (twin_time_compare(at->time, >, bt->time))
3331
return TWIN_AFTER;
32+
if (twin_time_compare(at->time, >, bt->time))
33+
return TWIN_BEFORE;
3434
return TWIN_AT;
3535
}
3636

0 commit comments

Comments
 (0)