mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-29 15:17:13 +02:00
Update WebSocketsServer.cpp
Created a dummy client in order to be able to drop the TCP Client.
This commit is contained in:
@ -619,6 +619,10 @@ WSclient_t * WebSocketsServerCore::handleNewClient(WEBSOCKETS_NETWORK_CLASS * tc
|
||||
#else
|
||||
DEBUG_WEBSOCKETS("[WS-Server] no free space new client\n");
|
||||
#endif
|
||||
// no client! => create dummy!
|
||||
WSclient_t dummy = WSclient_t();
|
||||
client = & dummy;
|
||||
client->tcp = tcpClient;
|
||||
dropNativeClient(client);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user