Skip to content
Snippets Groups Projects
Commit 0a6c1f00 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log a warning if failed to write to spy ring buffer

parent 7686fe93
No related branches found
No related tags found
No related merge requests found
......@@ -2574,7 +2574,10 @@ void output_thread(void* arg)
/* Spy on the user locally */
if(startup->node_spybuf!=NULL
&& startup->node_spybuf[sbbs->cfg.node_num-1]!=NULL) {
RingBufWrite(startup->node_spybuf[sbbs->cfg.node_num-1],buf+bufbot,i);
DWORD result = RingBufWrite(startup->node_spybuf[sbbs->cfg.node_num-1],buf+bufbot,i);
if(result != i)
lprintf(LOG_WARNING, "%s SHORT WRITE to spy ring buffer (%u < %u)"
,node, result, i);
}
/* Spy on the user remotely */
if(sbbs->cfg.mqtt.enabled && mqtt.handle != NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment