From 13d4ddb1214f84bf03e4719270ce44a8044d880d Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Tue, 31 Aug 2021 08:30:48 +0200 Subject: [PATCH] Remove unnecessary conditional. --- src/emucore/PlusROM.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/emucore/PlusROM.cxx b/src/emucore/PlusROM.cxx index a4dcc890a..4a7500e58 100644 --- a/src/emucore/PlusROM.cxx +++ b/src/emucore/PlusROM.cxx @@ -325,10 +325,9 @@ bool PlusROM::isValidPath(const string& path) const void PlusROM::send() { #if defined(HTTP_LIB_SUPPORT) - if (myPendingRequests.size() >= MAX_CONCURRENT_REQUESTS) { - // Try to make room by cosuming any requests that have completed. - receive(); - } + // Try to make room by cosuming any requests that have completed. + receive(); + if (myPendingRequests.size() >= MAX_CONCURRENT_REQUESTS) { Logger::error("PlusCart: max number of concurrent requests exceeded");