diff options
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*)
|