From b9d52d83d8dcae2aa66a1407925ba5be02b84eed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Mar 2025 19:23:36 +0300 Subject: code cleaning --- protocols/SkypeWeb/src/skype_polling.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'protocols/SkypeWeb/src') 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); -- cgit v1.2.3