summaryrefslogtreecommitdiff
path: root/protocols/GmailNotifier
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-16 21:58:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-16 21:58:55 +0300
commitaa37139121fccf4d304cc07d546b2b96ebe6dbcb (patch)
treea8ff27ad47bf7861497e6230e3e502713cd40b68 /protocols/GmailNotifier
parent734822b2e08cb153b6b067a8c1970bb0dfe58e95 (diff)
minor code cleaning
Diffstat (limited to 'protocols/GmailNotifier')
-rw-r--r--protocols/GmailNotifier/src/check.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/GmailNotifier/src/check.cpp b/protocols/GmailNotifier/src/check.cpp
index 8013b560e7..fab62e5283 100644
--- a/protocols/GmailNotifier/src/check.cpp
+++ b/protocols/GmailNotifier/src/check.cpp
@@ -117,12 +117,11 @@ void CheckMailInbox(Account *curAcc)
(nlr.resultCode == 401) ? Translate("Wrong name or password!") : Translate("Can't get RSS feed!"));
curAcc->results_num = -1;
- curAcc->IsChecking = false;
- return;
}
-
- curAcc->results_num = ParsePage(nlu->pData, &curAcc->results);
- mir_snprintf(curAcc->results.content, "%s [%d]", szNick.get(), curAcc->results_num);
+ else {
+ curAcc->results_num = ParsePage(nlu->pData, &curAcc->results);
+ mir_snprintf(curAcc->results.content, "%s [%d]", szNick.get(), curAcc->results_num);
+ }
curAcc->IsChecking = false;
}