Merge pull request #370 from diamante0018/main
fix: make sure rcon is handled at the right time
This commit is contained in:
commit
3e0099deda
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user