mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #13331 from unknownbrackets/debugger
http: Avoid logging errors for would block
This commit is contained in:
commit
f7283ee993
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
#include <cstdarg>
|
||||
|
||||
#include "net/sinks.h"
|
||||
|
@ -185,6 +186,14 @@ bool InputSink::Block() {
|
|||
|
||||
void InputSink::AccountFill(int bytes) {
|
||||
if (bytes < 0) {
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
int err = WSAGetLastError();
|
||||
if (err == WSAEWOULDBLOCK)
|
||||
return;
|
||||
#else
|
||||
if (errno == EWOULDBLOCK || errno == EAGAIN)
|
||||
return;
|
||||
#endif
|
||||
ERROR_LOG(IO, "Error reading from socket");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue