From 340386821c6b9e3c2e7b2cde0ec9e082efebcaec Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Tue, 27 Oct 2015 21:27:58 +0000 Subject: - MSN: Managing and refreshing OAuth tokens with different expiration times. git-svn-id: http://svn.miranda-ng.org/main/trunk@15627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_threads.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/MSN/src/msn_threads.cpp') diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp index 8671f2032a..0240aa3ccd 100644 --- a/protocols/MSN/src/msn_threads.cpp +++ b/protocols/MSN/src/msn_threads.cpp @@ -59,7 +59,7 @@ void __cdecl CMsnProto::msn_keepAliveThread(void*) mStatusMsgTS = 0; ForkThread(&CMsnProto::msn_storeProfileThread, NULL); } - if (MyOptions.netId!=NETID_SKYPE && time(&t) >= authTokenExpiretime-3600) + if (MyOptions.netId!=NETID_SKYPE && MSN_RefreshOAuthTokens(true)) ForkThread(&CMsnProto::msn_refreshOAuthThread, msnNsThread); break; @@ -85,7 +85,7 @@ void __cdecl CMsnProto::msn_loginThread(void*) void __cdecl CMsnProto::msn_refreshOAuthThread(void *param) { - if (MSN_RefreshOAuthTokens() > 0) { + if (MSN_RefreshOAuthTokens(false) > 0) { bIgnoreATH = true; MSN_SendATH((ThreadData*)param); } -- cgit v1.2.3