mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 13:16:17 +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);
|
const auto& result = rpc::commands.call_command(itr, object, target);
|
||||||
|
|
||||||
object_to_lua(l_state, result);
|
object_to_lua(l_state, result);
|
||||||
deleter();
|
if (deleter) deleter();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
} catch (torrent::base_error& e) {
|
} catch (torrent::base_error& e) {
|
||||||
deleter();
|
if (deleter) deleter();
|
||||||
throw luaL_error(l_state, e.what());
|
throw luaL_error(l_state, e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user