From be09f290d005f4259374c53185de5122f40d9ba4 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 7 May 2023 01:57:22 +0000 Subject: [PATCH] 1 --- server/wsproxy/iomgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/wsproxy/iomgr.cc b/server/wsproxy/iomgr.cc index a130c21..0e3579d 100644 --- a/server/wsproxy/iomgr.cc +++ b/server/wsproxy/iomgr.cc @@ -23,7 +23,7 @@ std::shared_ptr IoMgr::GetIoContext(int type) { if (type >= 0 && type < io_contexts_.size()) { auto& contexts = io_contexts_.at(type); - if (contexts.empty()) { + if (!contexts.empty()) { return contexts.at(rand() % contexts.size()); } }