summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-17 19:23:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-17 19:23:36 +0300
commitb9d52d83d8dcae2aa66a1407925ba5be02b84eed (patch)
treec910460213401bc1d74da6d2ea35facd4655b9b0 /protocols/SkypeWeb/src/skype_polling.cpp
parentf9f3afb98ee8050c768c6936650fb4041919a6e8 (diff)
code cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 824507d0e1..9b72c2962a 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -21,7 +21,6 @@ void CSkypeProto::PollingThread(void *)
{
debugLogA(__FUNCTION__ ": entering");
- int nErrors = 0;
m_iPollingId = -1;
while (true) {
@@ -35,14 +34,10 @@ void CSkypeProto::PollingThread(void *)
break;
if (response == nullptr || response->resultCode != 200) {
- if (nErrors < POLLING_ERRORS_LIMIT) {
- nErrors++;
- continue;
- }
- break;
+ m_hPollingConn = nullptr;
+ continue;
}
- nErrors = 0;
m_hPollingConn = response->nlc;
if (!response->body.IsEmpty())
ParsePollData(response->body);