This commit is contained in:
Kovid Goyal 2018-03-29 19:14:15 +05:30
parent 9f202c1e9a
commit 20288dd421
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -972,7 +972,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
if write_settings:
self.write_settings()
self.check_messages_timer.stop()
if hasattr(self, 'update_checker'):
if getattr(self, 'update_checker', None):
self.update_checker.shutdown()
self.listener.close()
self.job_manager.server.close()