From 103ba3b8b0eb5d8b2116dc0f91ef89a48dc10721 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 13 Oct 2014 22:36:05 +0200 Subject: [PATCH] Don't log PeerDisconnectedError. --- qutebrowser/utils/ipc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/ipc.py b/qutebrowser/utils/ipc.py index 54b22a1f7..cbe59dea5 100644 --- a/qutebrowser/utils/ipc.py +++ b/qutebrowser/utils/ipc.py @@ -86,7 +86,8 @@ class IPCServer(QObject): log.ipc.debug("We can read a line immediately.") self.on_ready_read() socket.error.connect(self.on_error) - if socket.error() != QLocalSocket.UnknownSocketError: + if socket.error() not in (QLocalSocket.UnknownSocketError, + QLocalSocket.PeerClosedError): log.ipc.debug("We got an error immediately.") self.on_error(socket.error()) socket.disconnected.connect(self.on_disconnected)