diff options
Diffstat (limited to 'qutebrowser/misc/ipc.py')
-rw-r--r-- | qutebrowser/misc/ipc.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qutebrowser/misc/ipc.py b/qutebrowser/misc/ipc.py index 05d9a6a33..b809394f1 100644 --- a/qutebrowser/misc/ipc.py +++ b/qutebrowser/misc/ipc.py @@ -259,10 +259,9 @@ class IPCServer(QObject): "still handling another one (0x{:x}).".format( id(self._socket))) return - socket = self._server.nextPendingConnection() - if not qtutils.is_not_none(socket): - log.ipc.debug( - "No new connection to handle.") + socket = qtutils.add_optional(self._server.nextPendingConnection()) + if socket is None: + log.ipc.debug("No new connection to handle.") return log.ipc.debug("Client connected (socket 0x{:x}).".format(id(socket))) self._socket = socket |