record workers in a map instead of a vector

This commit is contained in:
Benjamin Sergeant committed 2018-12-31 14:52:59 -08:00
1 parent ec2ad37860
commit cf340011e2
2 files changed
+3 -4

No files matched your search

+1 -1
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);
}
}