Commit 5d58e84d authored by rswindell's avatar rswindell
Browse files

Break getstr() loop if input_thread has terminated for some reason.

parent 807e589c
......@@ -97,6 +97,8 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
ungetkey(ch); }
while(!(sys_status&SS_ABORT) && (ch=getkey(mode|K_GETSTR))!=CR && online) {
if(!input_thread_running)
break;
if(sys_status&SS_ABORT)
break;
if(ch==LF && mode&K_MSG) /* Down-arrow same as CR */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment