From a3a2ede2142534c8d6abec2614f4c86b70f9bfe3 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 15 Mar 2017 00:21:25 +0100 Subject: [bug] don't check the number of unread mails if incoming service hasn't started --- src/leap/bitmask/core/mail_services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index 67dd9cd..019a104 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -779,7 +779,8 @@ class IncomingMailService(service.MultiService): status = self._status[userid] incoming = self.getServiceNamed(userid) - status['unread'] = yield incoming.unread() + if ['status'] == 'on': + status['unread'] = yield incoming.unread() defer.returnValue(status) def _set_status(self, address, status, error=None, unread=None): -- cgit v1.2.3