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()); } }