Compare commits

1 Commits

Author SHA1 Message Date
ad7385c21f more couts 2024-03-22 21:40:04 +03:00

View File

@@ -222,8 +222,10 @@ void DispatcherServer::disconnectClient(DispatcherClient * client) {
void DispatcherServer::newConnection(PIEthernet * cl) {
piCout << "DispatcherServer::newConnection" << (void *)cl;
PIMutexLocker locker(map_mutex);
if (clients.size() >= max_connections) {
piCout << "DispatcherServer::newConnection overflow" << (void *)cl;
delete cl;
return;
}
@@ -259,4 +261,5 @@ void DispatcherServer::newConnection(PIEthernet * cl) {
// piCoutObj << "add client" << client;
clients.push_back(client);
client->start();
piCout << "DispatcherServer::newConnection started" << (void *)cl;
}