mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 21:20:08 +00:00
Fix #10567
This commit is contained in:
parent
ff3f423c79
commit
3435aeccdb
1 changed files with 3 additions and 2 deletions
|
|
@ -1134,8 +1134,9 @@ schedule_timer(Timer *t) {
|
|||
repeats:(t->repeats ? YES : NO)block:^(NSTimer *os_timer) {
|
||||
for (size_t i = 0; i < num_timers; i++) {
|
||||
if (timers[i].os_timer == os_timer) {
|
||||
timers[i].callback(timers[i].id, timers[i].callback_data);
|
||||
if (!timers[i].repeats) remove_timer_at(i);
|
||||
const Timer timer = timers[i];
|
||||
timer.callback(timer.id, timer.callback_data);
|
||||
if (!timer.repeats) _glfwPlatformRemoveTimer(timer.id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue