File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -851,20 +851,14 @@ void InitBasicEventListeners() {
851
851
852
852
// ===== onServerStarted =====
853
853
bus.emplaceListener <ServerStartedEvent>([](ServerStartedEvent&) {
854
- ll::coro::keepThis ([]() -> ll::coro::CoroTask<> {
855
- using namespace ll ::chrono_literals;
856
- co_await 1_tick;
857
-
858
- IF_LISTENED (EVENT_TYPES::onServerStarted) {
859
- CallEvent (EVENT_TYPES::onServerStarted); // Not cancellable
860
- }
861
- IF_LISTENED_END (EVENT_TYPES::onServerStarted);
854
+ IF_LISTENED (EVENT_TYPES::onServerStarted) {
855
+ CallEvent (EVENT_TYPES::onServerStarted); // Not cancellable
856
+ }
857
+ IF_LISTENED_END (EVENT_TYPES::onServerStarted);
862
858
863
- isCmdRegisterEnabled = true ;
859
+ isCmdRegisterEnabled = true ;
864
860
865
- // 处理延迟注册
866
- ProcessRegCmdQueue ();
867
- }).launch (ll::thread::ServerThreadExecutor::getDefault ());
861
+ ProcessRegCmdQueue ();
868
862
});
869
863
870
864
// 植入tick
You can’t perform that action at this time.
0 commit comments