mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
timers: stop all timers on teardown
This commit is contained in:
parent
c16cb06656
commit
d6d8073939
@ -16609,6 +16609,14 @@ static void timer_free_cb(TimeWatcher *tw, void *data)
|
|||||||
xfree(timer);
|
xfree(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void timer_teardown(void)
|
||||||
|
{
|
||||||
|
timer_T *timer;
|
||||||
|
map_foreach_value(timers, timer, {
|
||||||
|
timer_stop(timer);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "tolower(string)" function
|
* "tolower(string)" function
|
||||||
*/
|
*/
|
||||||
|
@ -161,6 +161,7 @@ void event_teardown(void)
|
|||||||
input_stop();
|
input_stop();
|
||||||
channel_teardown();
|
channel_teardown();
|
||||||
process_teardown(&main_loop);
|
process_teardown(&main_loop);
|
||||||
|
timer_teardown();
|
||||||
server_teardown();
|
server_teardown();
|
||||||
signal_teardown();
|
signal_teardown();
|
||||||
terminal_teardown();
|
terminal_teardown();
|
||||||
|
Loading…
Reference in New Issue
Block a user