sim_tmxr.c Fixed console behaviors the console is directed to a serial port.
This commit is contained in:
parent
1fda1b1708
commit
15e648f560
1 changed files with 2 additions and 1 deletions
|
@ -1950,7 +1950,8 @@ for (i = 0; i < mp->lines; i++) { /* loop thru conn */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sim_close_sock (mp->master, 1); /* close master socket */
|
if (mp->master)
|
||||||
|
sim_close_sock (mp->master, 1); /* close master socket */
|
||||||
mp->master = 0;
|
mp->master = 0;
|
||||||
free (mp->port);
|
free (mp->port);
|
||||||
mp->port = NULL;
|
mp->port = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue