mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix a telnet server crash
This commit is contained in:
parent
629c7c58cb
commit
5b9d5f45e3
@ -318,7 +318,7 @@ IRAM_ATTR void telnetLoop()
|
||||
if(telnetConsole) {
|
||||
while(telnetConsole->readKey()) {
|
||||
if(!telnetConsole) return; // the telnetConsole was destroyed
|
||||
if(bufferedTelnetClient.peek() < 0) bufferedTelnetClient.flush(); // flush pending updates
|
||||
if(bufferedTelnetClient.available() <= 0) bufferedTelnetClient.flush(); // flush pending updates
|
||||
};
|
||||
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user