Commit fe78b989 authored by Deucе's avatar Deucе 👌🏾
Browse files

Call RingBufRead() when avail == 0 to reset events

If something else sets these events, and they never get cleared,
this will fall into a tight loop.
parent 24a196d2
Pipeline #3534 passed with stage
in 5 minutes and 25 seconds
......@@ -2364,8 +2364,11 @@ void output_thread(void* arg)
avail = RingBufFull(&sbbs->outbuf);
// If flushing or terminating, there will be nothing available
if (avail == 0)
if (avail == 0) {
// Reset data/highwater events
RingBufRead(&sbbs->outbuf, NULL, 0);
continue;
}
/*
* At this point, there's something to send and,
......
Supports Markdown
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