diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-28 07:36:21 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-28 07:36:21 +0000 |
commit | 73fc8cf0c7d2571441d32068630e3f534499b1b8 (patch) | |
tree | 8fe4701ac475c27c9e1c33925cdef91a3030acdd /protocols/SkypeWeb/src/skype_trouter.cpp | |
parent | d837d2e99fbe9444c44e9893b31a4465b2235cb3 (diff) |
SkypeWeb: More fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14743 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_trouter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index efc8ab8128..e39c08e599 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -108,8 +108,11 @@ void CSkypeProto::OnGetTrouter(const NETLIBHTTPREQUEST *response) else
SetEvent(m_hTrouterEvent);
- if (time(NULL) - (TRouter.lastRegistrationTime - 120) <= 0)
+ if ((time(NULL) - TRouter.lastRegistrationTime) >= 3600)
+ {
SendRequest(new RegisterTrouterRequest(m_szTokenSecret, TRouter.url.c_str(), TRouter.sessId.c_str()));
+ TRouter.lastRegistrationTime = time(NULL);
+ }
}
void CSkypeProto::OnHealth(const NETLIBHTTPREQUEST*)
|