summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/IcqOscarJ/src/icq_server.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/src/icq_server.cpp b/protocols/IcqOscarJ/src/icq_server.cpp
index 6ddaea9bdb..1b4e48e804 100644
--- a/protocols/IcqOscarJ/src/icq_server.cpp
+++ b/protocols/IcqOscarJ/src/icq_server.cpp
@@ -345,15 +345,14 @@ void CIcqProto::sendServPacket(icq_packet *pPacket)
connectionHandleMutex->Leave();
// Send error
- if (nSendResult == SOCKET_ERROR)
- {
- icq_LogUsingErrorCode(LOG_ERROR, GetLastError(), LPGEN("Your connection with the ICQ server was abortively closed"));
+ if (nSendResult == SOCKET_ERROR) {
+ DWORD dwErrorCode = GetLastError();
+ if (dwErrorCode != WSAESHUTDOWN)
+ icq_LogUsingErrorCode(LOG_ERROR, GetLastError(), LPGEN("Your connection with the ICQ server was abortively closed"));
icq_serverDisconnect(FALSE);
if (m_iStatus != ID_STATUS_OFFLINE)
- {
SetCurrentStatus(ID_STATUS_OFFLINE);
- }
}
else
{ // Rates management