From 2d48c23ca5328cd5073737e7d58368728358481b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 12 Sep 2020 22:59:12 -0700 Subject: [PATCH] fix blocking msgq poll (#64) * remove unnecessary condition on msqg poll * fix blocking msgq poll --- messaging/msgq.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/messaging/msgq.cc b/messaging/msgq.cc index d8fb0e5..53bdb9a 100644 --- a/messaging/msgq.cc +++ b/messaging/msgq.cc @@ -429,8 +429,6 @@ int msgq_msg_recv(msgq_msg_t * msg, msgq_queue_t * q){ int msgq_poll(msgq_pollitem_t * items, size_t nitems, int timeout){ - assert(timeout >= 0); - int num = 0; // Check if messages ready