diff --git a/src/sys/svc/hasp_telnet.cpp b/src/sys/svc/hasp_telnet.cpp index e5ed9f16..523a0a51 100644 --- a/src/sys/svc/hasp_telnet.cpp +++ b/src/sys/svc/hasp_telnet.cpp @@ -48,22 +48,21 @@ void telnet_update_prompt() bufferedTelnetClient.flush(); } - - void telnetStop(void) { LOG_TRACE(TAG_TELN, F(D_TELNET_CLOSING_CONNECTION), telnetClient.remoteIP().toString().c_str()); Log.unregisterOutput(1); // telnetClient telnetClient.stop(); - + telnetLoginState = TELNET_UNAUTHENTICATED; telnetLoginAttempt = 0; // Initial attempt delete telnetConsole; - telnetConsole = NULL;} + telnetConsole = NULL; +} - static inline void telnetClientDisconnect() +static inline void telnetClientDisconnect() { -telnetStop(); + telnetStop(); } void telnetClientLogon()