summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-21 21:29:56 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-21 21:29:56 +0100
commitd135728424dad963f789f2362f794ee393a11823 (patch)
tree021a78cf784440ccf1a757a350ea6fbcbe33308c
parent2185af0b7d2f5c8898b9ef2be3ab9cf78a8c962d (diff)
downloadxK-d135728424dad963f789f2362f794ee393a11823.tar.gz
xK-d135728424dad963f789f2362f794ee393a11823.tar.xz
xK-d135728424dad963f789f2362f794ee393a11823.zip
degesch: pop() the Lua error in timer dispatch
-rw-r--r--degesch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 1f8a675..80e3d2c 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7667,6 +7667,8 @@ lua_timer_hook_dispatch (void *user_data)
{
struct error *e = NULL;
(void) lua_plugin_process_error (plugin, lua_tostring (L, -1), &e);
+ lua_pop (L, 1);
+
log_global_error (plugin->ctx, "Lua: plugin \"#s\": #s: #s",
plugin->super.name, "timer hook", e->message);
error_free (e);