Skip to content
Snippets Groups Projects
Commit e68dcdc9 authored by Deucе's avatar Deucе :ok_hand_tone4:
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 186638a3
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment