From 53764f6b63b07aa909f48998a478bf58db4be93e Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 29 Aug 2015 11:10:23 +0000 Subject: [PATCH] If zero bytes were read (such as a CTRL-C after avail was set), continue rather than send the zero bytes. --- src/sbbs3/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index f93f65c9d0..acc5198ba1 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -2138,6 +2138,8 @@ void output_thread(void* arg) avail=mss; buftop=RingBufRead(&sbbs->outbuf, buf, avail); bufbot=0; + if (buftop == 0) + continue; } /* Check socket for writability (using select) */ -- GitLab