record workers in a map instead of a vector

This commit is contained in:
Benjamin Sergeant
2018-12-31 14:52:59 -08:00
parent a39278f7be
commit 58a68ec0be
2 changed files with 3 additions and 4 deletions

View File

@ -114,7 +114,7 @@ namespace ix
continue;
}
_workers.push_back(std::thread(&WebSocketServer::handleConnection, this, clientFd));
_workers[clientFd] = std::thread(&WebSocketServer::handleConnection, this, clientFd);
}
}