Remove unnecessary conditional.

This commit is contained in:
Christian Speckner 2021-08-31 08:30:48 +02:00
parent 79d40d52f8
commit 13d4ddb121
1 changed files with 3 additions and 4 deletions

View File

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