From 6862041eca60d1e3eed99988e57f69dab9a776f6 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 22 Dec 2012 11:57:22 -0800 Subject: [PATCH] Properly shutdown prior connecting socket when establishing a new one --- sim_tmxr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sim_tmxr.c b/sim_tmxr.c index 09cc480d..3299b695 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1760,6 +1760,7 @@ while (*tptr) { else { sock = sim_connect_sock (destination, "localhost", NULL); if (sock != INVALID_SOCKET) { + _mux_detach_line (lp, FALSE, TRUE); lp->destination = malloc(1+strlen(destination)); strcpy (lp->destination, destination); lp->connecting = sock;