mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
fix(lua): Execution of commands with empty target
This commit is contained in:
+2
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user