summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/request_queue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-08-16 20:15:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-08-16 20:15:38 +0300
commit70452ae985e7109b1eb9a66e39c039dacf0e2ecd (patch)
tree018feed7c9fb6afd893a5f3403de10f7d2f60e5f /protocols/SkypeWeb/src/request_queue.cpp
parent9f1e3442e5d25a6a1bd271d0e8e91f0f0f1a57fa (diff)
fixes #4568 (Skypeweb: может впадать в ступор после спячки)
Diffstat (limited to 'protocols/SkypeWeb/src/request_queue.cpp')
-rw-r--r--protocols/SkypeWeb/src/request_queue.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/request_queue.cpp b/protocols/SkypeWeb/src/request_queue.cpp
index e4cf75669c..580658d4b6 100644
--- a/protocols/SkypeWeb/src/request_queue.cpp
+++ b/protocols/SkypeWeb/src/request_queue.cpp
@@ -59,12 +59,15 @@ void CSkypeProto::StartQueue()
void CSkypeProto::StopQueue()
{
m_isTerminated = true;
+ m_iPollingId = -1;
if (m_hRequestQueueThread)
m_hRequestQueueEvent.Set();
- if (m_hPollingThread)
- m_hPollingEvent.Set();
+ if (m_hPollingConn) {
+ Netlib_Shutdown(m_hPollingConn);
+ m_hPollingConn = 0;
+ }
}
void CSkypeProto::PushRequest(AsyncHttpRequest *request)