fix: make sure rcon is handled at the right time

This commit is contained in:
Edo 2023-03-21 17:32:16 +00:00 committed by GitHub
parent 166ff6f429
commit fcc7efaf23

View File

@ -55,11 +55,10 @@ namespace rcon
void rcon_handler(const game::netadr_t& target, const network::data_view& data)
{
auto str_data = std::string(reinterpret_cast<const char*>(data.data()), data.size());
/*scheduler::once([target, s = std::move(str_data)]
scheduler::once([target, s = std::move(str_data)]
{
rcon_executer(target, s);
}, scheduler::main);*/
rcon_executer(target, str_data);
}, scheduler::main);
}
}