1
This commit is contained in:
parent
e41ffbd58f
commit
be09f290d0
@ -23,7 +23,7 @@ std::shared_ptr<asio::io_context> IoMgr::GetIoContext(int type)
|
|||||||
{
|
{
|
||||||
if (type >= 0 && type < io_contexts_.size()) {
|
if (type >= 0 && type < io_contexts_.size()) {
|
||||||
auto& contexts = io_contexts_.at(type);
|
auto& contexts = io_contexts_.at(type);
|
||||||
if (contexts.empty()) {
|
if (!contexts.empty()) {
|
||||||
return contexts.at(rand() % contexts.size());
|
return contexts.at(rand() % contexts.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user