Skip to content

Commit 0b9e309

Browse files
author
Y_Less
committed
Fix an infinite loop in y_timers.
1 parent cc1d066 commit 0b9e309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YSI_Coding/y_timers/y_timers_impl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ stock _Timer_F(Timer:slot = Timer:0, force = 0)
510510
P:6("_Timer_F: slot = %d, next = %d", _:slot, force);
511511
free(Alloc:slot);
512512
}
513-
while ((_:slot = force) != 1);
513+
while ((_:slot = force) != -1);
514514
return 1;
515515
}
516516

0 commit comments

Comments
 (0)