Ochrana pred preplnenim vyrovnavaci fronty weboveho soketu
This commit is contained in:
parent
14492ac2d0
commit
9f29c8b1b1
@ -270,8 +270,10 @@ void trace_poll()
|
|||||||
log = F("{\"type\":\"trace\",\"data\":[");
|
log = F("{\"type\":\"trace\",\"data\":[");
|
||||||
trace_dumpJSON(log);
|
trace_dumpJSON(log);
|
||||||
log.concat(F("]}"));
|
log.concat(F("]}"));
|
||||||
|
if (_wss->availableForWriteAll())
|
||||||
_wss->textAll(log);
|
_wss->textAll(log);
|
||||||
} else
|
} else
|
||||||
|
if (_wss->availableForWriteAll())
|
||||||
_wss->textAll(F("{\"type\":\"trace\",\"text\":\"Memory error\"}"));
|
_wss->textAll(F("{\"type\":\"trace\",\"text\":\"Memory error\"}"));
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user