From b22493112f5bf06cd7676cb0cdb7e75e4b16cffb Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 11 Aug 2022 11:14:04 -0600 Subject: [PATCH] Break out early (refer to issue #1910) --- 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();