diff --git a/Source/AuRPCServer.cpp b/Source/AuRPCServer.cpp index 0d2474a..1d8d495 100644 --- a/Source/AuRPCServer.cpp +++ b/Source/AuRPCServer.cpp @@ -120,13 +120,13 @@ AuSPtr AuRPCServer::NewChannel() } else { - AuAsync::NewWorkItem(this->worker, AuMakeShared([&]() + DispatchOn(this->worker, [&]() { if (!eh->Init()) { eh.reset(); } - }), true)->Dispatch()->BlockUntilComplete(); + })->BlockUntilComplete(); } return eh;