only:!= OK vs == RESET

This commit is contained in:
Matthew Kennedy 2024-12-20 02:29:25 -05:00 committed by rusefillc
parent cb5cb4c6e1
commit a077919deb
1 changed files with 2 additions and 3 deletions

View File

@ -136,9 +136,8 @@ public:
LogLineBuffer* line;
msg_t msg = filledBuffers.fetch(&line, TIME_INFINITE);
if (msg == MSG_RESET) {
// todo?
// what happens if MSG_RESET?
if (msg != MSG_OK) {
// This should be impossible - neither timeout or reset should happen
} else {
{
// Lock the buffer mutex - inhibit buffer swaps while writing