From a39bed945be56898d2eee18830ee3060f71b8ccd Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 13 Jul 2015 14:21:03 +0000 Subject: SkypeWeb: More fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@14550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_utils.cpp | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_utils.cpp') 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 -- cgit v1.2.3