diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 10 |
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;
}
|