1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-03 22:58:53 +00:00

Fixed Buffered Console behavior which ended up flushing buffer contents once a second and clearing the buffer. We were also incorrectly flushing buffer contents when a connection dropped.

This commit is contained in:
Mark Pizzolato
2013-01-11 16:34:05 -08:00
parent 6a08c3c283
commit 1213f098e2
2 changed files with 4 additions and 2 deletions

View File

@@ -1142,7 +1142,8 @@ for (i = 0; i < mp->lines; i++) { /* loop thru lines */
TMXR_MAXBUF - lp->rxbpi);
if (nbytes < 0) { /* line error? */
lp->txbpi = lp->txbpr = 0; /* Drop the data we already know we can't send */
if (!lp->txbfd)
lp->txbpi = lp->txbpr = 0; /* Drop the data we already know we can't send */
tmxr_close_ln (lp); /* disconnect line */
}