From fcc7efaf23332d6095b459127619862d8d92c9fe Mon Sep 17 00:00:00 2001 From: Edo Date: Tue, 21 Mar 2023 17:32:16 +0000 Subject: [PATCH] fix: make sure rcon is handled at the right time --- src/client/component/rcon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/component/rcon.cpp b/src/client/component/rcon.cpp index bc8fe080..4fd67a4e 100644 --- a/src/client/component/rcon.cpp +++ b/src/client/component/rcon.cpp @@ -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(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); } }