In ShiraNet::Servers::TcpServer::getClient you've got a race condition. Or rather there i risk for one. Since clients is modified concurrently in: - getConnection - removeClient - sendToAll One could solve this using a mutex there.
In ShiraNet::Servers::TcpServer::getClient you've got a race condition. Or rather there i risk for one.
Since clients is modified concurrently in:
One could solve this using a mutex there.