summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_utils.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-13 14:21:03 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-13 14:21:03 +0000
commita39bed945be56898d2eee18830ee3060f71b8ccd (patch)
treedf3ee7704cb715dc1ab4a3b8d0fb3997aba500d2 /protocols/SkypeWeb/src/skype_utils.cpp
parentee57d99782d0a3a789b673f13cfdf96e1a77de23 (diff)
SkypeWeb: More fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_utils.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp
index 1647d57682..ca560b5e65 100644
--- a/protocols/SkypeWeb/src/skype_utils.cpp
+++ b/protocols/SkypeWeb/src/skype_utils.cpp
@@ -660,40 +660,10 @@ INT_PTR CSkypeProto::ParseSkypeUriService(WPARAM, LPARAM lParam)
INT_PTR CSkypeProto::GlobalParseSkypeUriService(WPARAM wParam, LPARAM lParam)
{
+ mir_cslock lck(accountsLock);
for (int i = 0; i < Accounts.getCount(); i++)
if (Accounts[i]->IsOnline())
return Accounts[i]->ParseSkypeUriService(wParam, lParam);
return 1;
-}
-
-void CSkypeProto::ProcessTimer()
-{
- if (IsOnline())
- {
- PushRequest(new GetContactListRequest(m_szTokenSecret), &CSkypeProto::LoadContactList);
- SendPresence(false);
- if (!m_hTrouterThread)
- SendRequest(new CreateTrouterRequest(), &CSkypeProto::OnCreateTrouter);
- }
-}
-
-static VOID CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD)
-{
- for (int i = 0; i < Accounts.getCount(); i++)
- {
- Accounts[i]->ProcessTimer();
- }
-}
-
-void CSkypeProto::SkypeSetTimer(void*)
-{
- CSkypeProto::m_timer = SetTimer(NULL, 0, 600000, TimerProc);
-}
-
-void CSkypeProto::SkypeUnsetTimer(void*)
-{
- if (CSkypeProto::m_timer)
- KillTimer(NULL, CSkypeProto::m_timer);
- CSkypeProto::m_timer = 0;
} \ No newline at end of file