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:
Charles 2016-05-06 16:54:15 +02:00
parent 8dfd328627
commit b1492fc213
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ uint16_t AsyncWebSocketClient::remotePort() {
AsyncWebSocket::AsyncWebSocket(String url)
:_url(url)
,_clients(NULL)
,_cNextId(0)
,_cNextId(1)
{
_eventHandler = NULL;
}