| 241 | } |
| 242 | |
| 243 | List<UniverseConnection> UniverseConnectionServer::removeAllConnections() { |
| 244 | List<UniverseConnection> removedConnections; |
| 245 | RecursiveMutexLocker connectionsLocker(m_connectionsMutex); |
| 246 | for (auto connectionId : m_connections.keys()) |
| 247 | removedConnections.append(removeConnection(connectionId)); |
| 248 | return removedConnections; |
| 249 | } |
| 250 | |
| 251 | void UniverseConnectionServer::sendPackets(ConnectionId clientId, List<PacketPtr> packets) { |
| 252 | RecursiveMutexLocker connectionsLocker(m_connectionsMutex); |