Avoid calling ConsumerImpl::redeliverMessages() when message list is empty
@@ -74,7 +74,9 @@ void NegativeAcksTracker::handleTimer(const boost::system::error_code &ec) {
}
}
+ if (!messagesToRedeliver.empty()) {
consumer_.redeliverMessages(messagesToRedeliver);
+ }
scheduleTimer();
}
