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");