From c8c307feec88c5a7b5d9fd81a785e7f5667083d2 Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Mon, 28 Dec 2015 10:45:46 +0000 Subject: - MSN: addressing Ticket 1117: Closing Netlib handle after 60 second timeout invalidates handle which in turn causes crash. Now using Shutdown function to force connection close. git-svn-id: http://svn.miranda-ng.org/main/trunk@15947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_threads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/MSN') diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp index 8e92e2e72e..073f74481c 100644 --- a/protocols/MSN/src/msn_threads.cpp +++ b/protocols/MSN/src/msn_threads.cpp @@ -52,7 +52,7 @@ void __cdecl CMsnProto::msn_keepAliveThread(void*) if (hHttpsConnection && (clock() - mHttpsTS) > 60 * CLOCKS_PER_SEC) { HANDLE hConn = hHttpsConnection; hHttpsConnection = NULL; - Netlib_CloseHandle(hConn); + Netlib_Shutdown(hConn); } if (mStatusMsgTS && (clock() - mStatusMsgTS) > 60 * CLOCKS_PER_SEC) { mStatusMsgTS = 0; -- cgit v1.2.3