fix: ESP32 new client connection

This commit is contained in:
Silver Kuusik
2017-09-03 09:55:15 +02:00
committed by GitHub
parent 4c1c5378cb
commit 83a1539e1e

View File

@ -587,7 +587,7 @@ bool WebSocketsServer::clientIsConnected(WSclient_t * client) {
*/ */
void WebSocketsServer::handleNewClients(void) { void WebSocketsServer::handleNewClients(void) {
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) #if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP32)
while(_server->hasClient()) { while(_server->hasClient()) {
#endif #endif
bool ok = false; bool ok = false;