more couts

This commit is contained in:
2024-03-22 21:40:04 +03:00
parent dd6d91ac1d
commit ad7385c21f

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;
}