summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/ipc.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/ipc.py')
-rw-r--r--qutebrowser/misc/ipc.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/qutebrowser/misc/ipc.py b/qutebrowser/misc/ipc.py
index 64ad1a260..1b2ac3d8a 100644
--- a/qutebrowser/misc/ipc.py
+++ b/qutebrowser/misc/ipc.py
@@ -276,12 +276,15 @@ class IPCServer(QObject):
socket.errorOccurred.connect(self.on_error)
- if socket.error() not in [
+ # FIXME:v4 Ignore needed due to overloaded signal/method in Qt 5
+ socket_error = socket.error() # type: ignore[operator,unused-ignore]
+ if socket_error not in [
QLocalSocket.LocalSocketError.UnknownSocketError,
QLocalSocket.LocalSocketError.PeerClosedError
]:
log.ipc.debug("We got an error immediately.")
- self.on_error(socket.error())
+ self.on_error(socket_error)
+
socket.disconnected.connect(self.on_disconnected)
if socket.state() == QLocalSocket.LocalSocketState.UnconnectedState:
log.ipc.debug("Socket was disconnected immediately.")