aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 6ae5081550..0d060e5b70 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -16529,6 +16529,9 @@ static void f_timer_stop(typval_T *argvars, typval_T *rettv)
static void timer_due_cb(TimeWatcher *tw, void *data)
{
timer_T *timer = (timer_T *)data;
+ if (timer->stopped) {
+ return;
+ }
// if repeat was negative repeat forever
if (timer->repeat_count >= 0 && --timer->repeat_count == 0) {
timer_stop(timer);