From 8ac1845b30eb0e8898b7d9ab1003e3f0b585cddd Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 26 Aug 2018 15:45:12 -0700 Subject: [PATCH] TMXR: Fix to drop DCD and CTS when a modem connection is dropped remotely As reported in #609 --- sim_tmxr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim_tmxr.c b/sim_tmxr.c index a4a2b07b..797c4166 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1600,6 +1600,8 @@ else { } } } + if (!lp->conn) + lp->modembits &= ~(TMXR_MDM_DCD | TMXR_MDM_CTS); if ((lp->master) || (lp->mp && lp->mp->master) || (lp->port && lp->destination)) incoming_state = TMXR_MDM_DSR;