Merge pull request #370 from diamante0018/main

fix: make sure rcon is handled at the right time
This commit is contained in:
Maurice Heumann 2023-03-21 18:43:30 +01:00 committed by GitHub
commit 3e0099deda

View File

@ -55,11 +55,10 @@ namespace rcon
void rcon_handler(const game::netadr_t& target, const network::data_view& data) 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()); 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); rcon_executer(target, s);
}, scheduler::main);*/ }, scheduler::main);
rcon_executer(target, str_data);
} }
} }