Skip to content
Snippets Groups Projects
Commit 03c73a07 authored by deuce's avatar deuce
Browse files

Move rlogin_close() call into doterm() to avoid holding the socket in

FIN_WAIT state until the user hits enter on the disconnected dialog.
parent 68f3b2e8
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ void doterm(void)
case -1:
free(scrollback);
cterm_end();
rlogin_close();
uifcmsg("Disconnected","`Disconnected`\n\nRemote host dropped connection");
return;
case 0:
......@@ -101,6 +102,7 @@ void doterm(void)
case 17: /* CTRL-Q */
cterm_end();
free(scrollback);
rlogin_close();
return;
case 19: /* CTRL-S */
i=wherex();
......@@ -109,6 +111,7 @@ void doterm(void)
case -1:
cterm_end();
free(scrollback);
rlogin_close();
return;
}
gotoxy(i,j);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment