From bec88b4678c8e91a2ba6357eca65815e3da089ef Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 11 Aug 2022 11:14:04 -0600 Subject: [PATCH] #1910: Break out early --- src/vt/messaging/active.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vt/messaging/active.cc b/src/vt/messaging/active.cc index d48a57db31..f0f7785b00 100644 --- a/src/vt/messaging/active.cc +++ b/src/vt/messaging/active.cc @@ -656,6 +656,10 @@ bool ActiveMessenger::recvDataMsg( } bool ActiveMessenger::tryProcessDataMsgRecv() { + if (pending_recvs_.size() == 0) { + return false; + } + bool erase = false; auto iter = pending_recvs_.begin();