Skip to content

Commit e1392a6

Browse files
committed
Fix timeout processing order
Fix timeout processing order from reverse chronological to chronological to ensure timeout events are processed sequentially.
1 parent 9efea6e commit e1392a6

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)