1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 22:50:55 +00:00

Merge branch 's00500:master' into master

This commit is contained in:
Martin Mueller 2024-06-28 23:09:34 -04:00 committed by GitHub
commit 8bca2e503b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -449,6 +449,11 @@ void ESPUIClass::onWsEvent(
} }
else else
{ {
if(type == WS_EVT_CONNECT)
{
ws->cleanupClients();
}
if (MapOfClients.end() == MapOfClients.find(client->id())) if (MapOfClients.end() == MapOfClients.find(client->id()))
{ {
// Serial.println("ESPUIClass::OnWsEvent:Create new client."); // Serial.println("ESPUIClass::OnWsEvent:Create new client.");