Remove compiler warnings (#854)

* [Prevent unwanted Compiler Warnings]: Issue #772
This commit is contained in:
Hasenradball
2024-01-05 17:24:45 +01:00
committed by GitHub
parent 6a26f74f95
commit 503105a9fe
2 changed files with 2 additions and 2 deletions

View File

@@ -655,7 +655,7 @@ void WebSocketsServer::handleNewClients(void) {
#endif
// store new connection
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->available());
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->accept());
if(!tcpClient) {
DEBUG_WEBSOCKETS("[WS-Client] creating Network class failed!");
return;