From 3ae8a42dae2e74bd4ef562fa07b7b29c446adf5d Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 26 Sep 2011 11:49:43 -0700 Subject: [PATCH] Allowed SET CONSOLE TELNET=nnn to be issued multiple times, with an automatic SET CONSOLE NOTELNET done as needed. --- sim_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim_console.c b/sim_console.c index 60a69b07..319b14f5 100644 --- a/sim_console.c +++ b/sim_console.c @@ -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