POP3: Actually return B_TIMED_OUT not just B_ERROR on timeouts.

This commit is contained in:
Augustin Cavalier 2017-07-01 04:58:05 -04:00
parent d1136c5a97
commit 6a075fc1af

View File

@ -603,7 +603,7 @@ POP3Protocol::RetrieveInternal(const char* command, int32 message,
if (result == B_TIMED_OUT) {
// No data available, even after waiting a minute.
fLog = "POP3 timeout - no data received after a long wait.";
return B_ERROR;
return B_TIMED_OUT;
}
if (amountToReceive > bufSize - 1 - amountInBuffer)
amountToReceive = bufSize - 1 - amountInBuffer;