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:
parent
8dfd328627
commit
b1492fc213
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue