1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-04 15:16:06 +00:00

Periodically flush buffered console mux data. This is necessary to cover the situation when data was buffered and sending data out the connection stalled due to OS/network buffering and no more output traffic happens to be generated.

This commit is contained in:
Mark Pizzolato
2012-11-07 14:26:07 -08:00
parent faa5c61fe4
commit f8ae8d2741
2 changed files with 4 additions and 0 deletions

View File

@@ -850,6 +850,7 @@ if (lp->serport) {
free (lp->serconfig);
lp->serconfig = NULL;
lp->cnms = 0;
lp->rcve = lp->xmte = 0;
}
else
if (!lp->mp->modem_control) { /* serial connection? */
@@ -862,6 +863,7 @@ else /* Telnet connection */
if (lp->conn) {
sim_close_sock (lp->conn, 0); /* close socket */
lp->conn = 0;
lp->rcve = lp->xmte = 0;
}
free(lp->ipad);
lp->ipad = NULL;