diff options
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r-- | src/net/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 0162d246..7124073c 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -149,10 +149,15 @@ void flush() { out_size -= ret; } } - if(ret==SOCKET_ERROR) { + if (ret == SOCKET_ERROR) { error("Socket Error"); #ifdef WIN32 log("Error", "Socket error: %i ", WSAGetLastError()); + if (WSAGetLastError() == 10053) + log("Error", "Packet size error"); + /** Probably the last packet you sent, was defined with + * wrong size: WFIFOSET(size); + */ #else log("Error", "socket_error", "Undefined socket error"); #endif |