Allowed SET CONSOLE TELNET=nnn to be issued multiple times, with an automatic SET CONSOLE NOTELNET done as needed.

This commit is contained in:
Mark Pizzolato 2011-09-26 11:49:43 -07:00
parent 2753c4a3dc
commit 3ae8a42dae

View file

@ -424,7 +424,8 @@ while (*cptr != 0) { /* do all mods */
*cvptr++ = 0;
get_glyph (gbuf, gbuf, 0); /* modifier to UC */
if (isdigit (*gbuf)) {
if (sim_con_tmxr.master) return SCPE_ALATT; /* already open? */
if (sim_con_tmxr.master) /* already open? */
sim_set_notelnet (0, NULL); /* close first */
return tmxr_open_master (&sim_con_tmxr, gbuf); /* open master socket */
}
else