fix(lua): Execution of commands with empty target

This commit is contained in:
PRESFIL
2025-06-11 18:34:26 +00:00
committed by Jari Sundell
parent 09dd1ce9c8
commit 9b0d74bd68
+2 -2
View File
@@ -108,12 +108,12 @@ LuaEngine::lua_rtorrent_call(lua_State* l_state) {
const auto& result = rpc::commands.call_command(itr, object, target);
object_to_lua(l_state, result);
deleter();
if (deleter) deleter();
return 1;
} catch (torrent::base_error& e) {
deleter();
if (deleter) deleter();
throw luaL_error(l_state, e.what());
}
}