Browse Source

Immediatly close connection to avoid watchdog

rfm69
Maxim Prokhorov 6 years ago
parent
commit
5708a23d2f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/telnet.ino

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

@ -70,7 +70,7 @@ void _telnetData(unsigned char clientId, void *data, size_t len) {
// C-d is sent as two bytes (sometimes repeating) // C-d is sent as two bytes (sometimes repeating)
if (len >= 2) { if (len >= 2) {
if ((p[0] == 0xFF) && (p[1] == 0xEC)) { if ((p[0] == 0xFF) && (p[1] == 0xEC)) {
_telnetClients[clientId]->close();
_telnetClients[clientId]->close(true);
return; return;
} }
} }


Loading…
Cancel
Save