summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/request_queue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/request_queue.cpp b/protocols/SkypeWeb/src/request_queue.cpp
index aa5812aa0b..89b36b6a74 100644
--- a/protocols/SkypeWeb/src/request_queue.cpp
+++ b/protocols/SkypeWeb/src/request_queue.cpp
@@ -48,7 +48,7 @@ void CSkypeProto::StartQueue()
m_isTerminated = false;
if (m_hRequestQueueThread == nullptr)
- m_hRequestQueueThread = ForkThreadEx(&CSkypeProto::WorkerThread, 0, 0);
+ ForkThread(&CSkypeProto::WorkerThread);
}
void CSkypeProto::StopQueue()
@@ -143,6 +143,8 @@ void CSkypeProto::Execute(AsyncHttpRequest *item)
void CSkypeProto::WorkerThread(void*)
{
+ m_hRequestQueueThread = GetCurrentThread();
+
while (true) {
m_hRequestQueueEvent.Wait();
if (m_isTerminated)