Browse Source

fix telnet client object deletion

webui
Max Prokhorov 6 years ago
committed by GitHub
parent
commit
4423cd59f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/telnet.ino

+ 1
- 1
code/espurna/telnet.ino View File

@ -36,8 +36,8 @@ void _telnetWebSocketOnSend(JsonObject& root) {
void _telnetDisconnect(unsigned char clientId) {
_telnetClients[clientId]->free();
_telnetClients[clientId] = NULL;
delete _telnetClients[clientId];
_telnetClients[clientId] = NULL;
wifiReconnectCheck();
DEBUG_MSG_P(PSTR("[TELNET] Client #%d disconnected\n"), clientId);
}


Loading…
Cancel
Save