forked from me-no-dev/ESPAsyncWebServer
avoid client ID being 0
Prevent having clientID set to 0 When managing an array of different clientID, it's preferable to a valid client not having it's ID set to 0
This commit is contained in:
@@ -544,7 +544,7 @@ uint16_t AsyncWebSocketClient::remotePort() {
|
|||||||
AsyncWebSocket::AsyncWebSocket(String url)
|
AsyncWebSocket::AsyncWebSocket(String url)
|
||||||
:_url(url)
|
:_url(url)
|
||||||
,_clients(NULL)
|
,_clients(NULL)
|
||||||
,_cNextId(0)
|
,_cNextId(1)
|
||||||
{
|
{
|
||||||
_eventHandler = NULL;
|
_eventHandler = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user