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); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -