From 9d83b15104a045b1b03fbbe1f2314448b859b2e8 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 5 May 2021 14:10:58 +0200 Subject: [PATCH] msgq_all_readers_updated: only return true when at least one reader is connected --- messaging/msgq.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging/msgq.cc b/messaging/msgq.cc index 502f0695584312..0c17b265725ad6 100644 --- a/messaging/msgq.cc +++ b/messaging/msgq.cc @@ -460,5 +460,5 @@ bool msgq_all_readers_updated(msgq_queue_t *q) { return false; } } - return true; + return num_readers > 0; }