summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-28 14:05:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-28 14:05:35 +0000
commit2adfd5da2ba78327273782981c963d42e09d7ac6 (patch)
tree3a76cc0009860e5d0a4983783349725c0af73c57 /protocols
parent657291051bb286ad25e1f27fcb333c340d4e2b02 (diff)
there's no need to print error messages about the connection we'd shut down ourselves
git-svn-id: http://svn.miranda-ng.org/main/trunk@5170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-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