mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Fixed disconnect crash/loop
This commit is contained in:
parent
c7ccedb2f0
commit
34177b0420
1 changed files with 7 additions and 7 deletions
|
@ -907,16 +907,13 @@ init_connection:
|
|||
case CH_BACKSPACE:
|
||||
if (term.sock_ready) TCPSocketSendString(term.sock, "\x08\x7F");
|
||||
break;
|
||||
case CH_ESC:
|
||||
if (term.sock_ready) TCPSocketSendString(term.sock, "\x1B");
|
||||
break;
|
||||
case CH_SHIFT_ESC:
|
||||
if (term.sock_ready)
|
||||
{
|
||||
if (term.sock_ready) TCPSocketClose(term.sock);
|
||||
host = NULL;
|
||||
term.sock_ready = 0;
|
||||
term.waiting_for_input = TRUE;
|
||||
term.sock_ready = 0;
|
||||
host = NULL;
|
||||
TCPSocketClose(term.sock);
|
||||
DocClear;
|
||||
"Telnet connection closed.\n";
|
||||
Sleep(100);
|
||||
|
@ -925,6 +922,9 @@ init_connection:
|
|||
else
|
||||
force_disconnect = TRUE;
|
||||
break;
|
||||
case CH_ESC:
|
||||
if (term.sock_ready) TCPSocketSendString(term.sock, "\x1B");
|
||||
break;
|
||||
// send buffer on enter
|
||||
case '\n':
|
||||
if (term.sock_ready) TCPSocketSendString(term.sock, "\r\n");
|
||||
|
|
Loading…
Reference in a new issue