mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-21 02:06:35 +00:00
Disconnect telnetClient on reboot
This commit is contained in:
parent
3ab89febc7
commit
561c4bfd25
@ -48,8 +48,6 @@ void telnet_update_prompt()
|
|||||||
bufferedTelnetClient.flush();
|
bufferedTelnetClient.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void telnetStop(void)
|
void telnetStop(void)
|
||||||
{
|
{
|
||||||
LOG_TRACE(TAG_TELN, F(D_TELNET_CLOSING_CONNECTION), telnetClient.remoteIP().toString().c_str());
|
LOG_TRACE(TAG_TELN, F(D_TELNET_CLOSING_CONNECTION), telnetClient.remoteIP().toString().c_str());
|
||||||
@ -59,7 +57,8 @@ void telnetStop(void)
|
|||||||
telnetLoginState = TELNET_UNAUTHENTICATED;
|
telnetLoginState = TELNET_UNAUTHENTICATED;
|
||||||
telnetLoginAttempt = 0; // Initial attempt
|
telnetLoginAttempt = 0; // Initial attempt
|
||||||
delete telnetConsole;
|
delete telnetConsole;
|
||||||
telnetConsole = NULL;}
|
telnetConsole = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static inline void telnetClientDisconnect()
|
static inline void telnetClientDisconnect()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user