summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 4cba07c..4ae824d 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7747,6 +7747,9 @@ lua_timer_hook_dispatch (void *user_data)
plugin->super.name, "timer hook", e->message);
error_free (e);
}
+
+ // There's no need to keep the hook around once the timer is dispatched
+ lua_cache_invalidate (L, hook);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -