summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-12-04 12:30:47 +0100
committerRobert Pösel <robyer@seznam.cz>2016-12-04 12:30:47 +0100
commit30aa1e735ee6568f598c0b2a04e0b691d68c6a18 (patch)
treee632a3315092c05573d0c79388bc3c188361d136 /protocols/SkypeWeb/src/skype_polling.cpp
parent485351f4be14ea8739eedeae5a238889d8431f50 (diff)
SkypeWeb: Disconnect only when 3 *consecutive* errors happens
Previously, errors counter wasn't reset when correct request arrived, so it could easily accumulate 3 errors during short time very easily, causing unneeded disconnections. This commit changes that behavior and makes disconnection happen only for 3 consecutive errors.
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 9de9e4108d..90b4d3b178 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -43,6 +43,8 @@ void CSkypeProto::PollingThread(void*)
if (response->resultCode == 200)
{
+ nErrors = 0;
+
if (response->pData)
{
char *pData = mir_strdup(response->pData);