diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-10-27 21:27:58 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-10-27 21:27:58 +0000 |
commit | 340386821c6b9e3c2e7b2cde0ec9e082efebcaec (patch) | |
tree | 42ff66fcf8cdbf76523fd7433cac738343e2c4d6 /protocols/MSN/src/msn_threads.cpp | |
parent | 239519030ec3cd6cf571ab79348596be0cb8eeeb (diff) |
- 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
Diffstat (limited to 'protocols/MSN/src/msn_threads.cpp')
-rw-r--r-- | protocols/MSN/src/msn_threads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
}
|