degesch: pop() the Lua error in timer dispatch

This commit is contained in:
Přemysl Eric Janouch 2015-11-21 21:29:56 +01:00
parent 2185af0b7d
commit d135728424
1 changed files with 2 additions and 0 deletions

View File

@ -7667,6 +7667,8 @@ lua_timer_hook_dispatch (void *user_data)
{ {
struct error *e = NULL; struct error *e = NULL;
(void) lua_plugin_process_error (plugin, lua_tostring (L, -1), &e); (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", log_global_error (plugin->ctx, "Lua: plugin \"#s\": #s: #s",
plugin->super.name, "timer hook", e->message); plugin->super.name, "timer hook", e->message);
error_free (e); error_free (e);