From 620a8e00fae60a5bef18a000c8bc5a3b98eff6a1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 26 Aug 2015 11:00:13 +0000 Subject: SkypeWeb: more fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15033 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_polling.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_polling.cpp') diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index cec5055c66..3d10898c4a 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -26,7 +26,7 @@ void CSkypeProto::PollingThread(void*) { WaitForSingleObject(m_hPollingEvent, INFINITE); - while ((nErrors < POLLING_ERRORS_LIMIT) && (m_iStatus > ID_STATUS_OFFLINE || IsStatusConnecting(m_iStatus))) + while ((nErrors < POLLING_ERRORS_LIMIT) && m_iStatus != ID_STATUS_OFFLINE) { PollRequest *request = new PollRequest(li); request->nlc = m_pollingConnection; @@ -210,6 +210,7 @@ void CSkypeProto::ProcessUserPresence(const JSONNode &node) if (IsMe(skypename)) { int iNewStatus = SkypeToMirandaStatus(status.c_str()); + if (iNewStatus == ID_STATUS_OFFLINE) return; int old_status = m_iStatus; m_iDesiredStatus = iNewStatus; m_iStatus = iNewStatus; -- cgit v1.2.3