From 2adfd5da2ba78327273782981c963d42e09d7ac6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Jun 2013 14:05:35 +0000 Subject: 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 --- protocols/IcqOscarJ/src/icq_server.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols') 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 -- cgit v1.2.3