Fix --no-update-check causing an exception during shutdown

This commit is contained in:
Kovid Goyal 2014-11-06 17:02:43 +05:30
parent ab046b1d23
commit fbcd1bb94a

View File

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