From 22c5df52835fba4c953ffa19c012400853c883a6 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 28 Dec 2015 08:24:44 +0000 Subject: Steam: attempt to fix #1115 git-svn-id: http://svn.miranda-ng.org/main/trunk@15945 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 3c57248900..c416cbd957 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -20,7 +20,7 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM) int CSteamProto::OnPreShutdown(WPARAM, LPARAM) { - Netlib_CloseHandle(this->m_hNetlibUser); + Netlib_Shutdown(this->m_hNetlibUser); this->m_hNetlibUser = NULL; return 0; } @@ -75,7 +75,7 @@ int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) // User started being idle MIRANDA_IDLE_INFO mii = { sizeof(mii) }; CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&mii); - + // Compute time when user really became idle m_idleTS = time(0) - mii.idleTime * 60; setDword("IdleTS", m_idleTS); @@ -88,4 +88,4 @@ int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) } return 0; -} \ No newline at end of file +} -- cgit v1.2.3