ipc: Fix _atime_timer shutdown on Windows.

This commit is contained in:
Florian Bruhin 2015-09-10 07:52:26 +02:00
parent d2bce5dca9
commit 1dba5b0bbd

View File

@ -366,11 +366,12 @@ class IPCServer(QObject):
self._socket.deleteLater()
self._socket = None
self._timer.stop()
self._atime_timer.stop()
try:
self._atime_timer.timeout.disconnect(self.update_atime)
except TypeError:
pass
if self._atime_timer is not None:
self._atime_timer.stop()
try:
self._atime_timer.timeout.disconnect(self.update_atime)
except TypeError:
pass
self._server.close()
self._server.deleteLater()
self._remove_server()