summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-23 19:23:39 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-23 19:23:39 +0000
commit037511a364629d200c22cd08e0fa4922f2429bfc (patch)
tree510680699b0e8eb046b771b9de350b20fd0e7fa8 /protocols/SkypeWeb/src/skype_proto.cpp
parenta8dfca9c4a079c6d9706fa819b8993a2df5d7270 (diff)
SkypeWeb: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@15429 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index d8b5c823b4..54d443256e 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -46,10 +46,6 @@ CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) :
SkinAddNewSoundEx("skype_inc_call", "SkypeWeb", LPGEN("Incoming call sound"));
SkinAddNewSoundEx("skype_call_canceled", "SkypeWeb", LPGEN("Incoming call canceled sound"));
- m_hTrouterEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
- m_hPollingEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
- m_hTrouterHealthEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
-
SkypeSetTimer();
m_hPollingThread = ForkThreadEx(&CSkypeProto::PollingThread, NULL, NULL);
@@ -69,16 +65,12 @@ CSkypeProto::~CSkypeProto()
TerminateThread(m_hPollingThread, NULL);
m_hPollingThread = NULL;
}
- CloseHandle(m_hPollingEvent); m_hPollingEvent = NULL;
if (m_hTrouterThread)
{
TerminateThread(m_hTrouterThread, NULL);
m_hTrouterThread = NULL;
}
- CloseHandle(m_hTrouterEvent); m_hTrouterEvent = NULL;
-
- CloseHandle(m_hTrouterHealthEvent);
SkypeUnsetTimer();
}
@@ -93,7 +85,7 @@ int CSkypeProto::OnPreShutdown(WPARAM, LPARAM)
ShutdownConnections();
- SetEvent(m_hPollingEvent);
+ m_hPollingEvent.Set();
return 0;
}