mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 03:45:44 +00:00
Properly shutdown prior connecting socket when establishing a new one
This commit is contained in:
parent
2a89d9bdc6
commit
6862041eca
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user