From b42b12b7a504a8ca150089c2db08bb90004849ab Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 2 Oct 2015 08:17:50 +0200 Subject: [PATCH] Fix ipc.py coverage. --- qutebrowser/misc/ipc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/misc/ipc.py b/qutebrowser/misc/ipc.py index 98a44a072..b85ad4aff 100644 --- a/qutebrowser/misc/ipc.py +++ b/qutebrowser/misc/ipc.py @@ -343,10 +343,10 @@ class IPCServer(QObject): """Cancel the current connection if it was idle for too long.""" log.ipc.error("IPC connection timed out.") self._socket.disconnectFromServer() - if self._socket is not None: # pragma: no branch + if self._socket is not None: # pragma: no cover # on_socket_disconnected sets it to None self._socket.waitForDisconnected(CONNECT_TIMEOUT) - if self._socket is not None: # pragma: no branch + if self._socket is not None: # pragma: no cover # on_socket_disconnected sets it to None self._socket.abort()