From 364d069e74f42b9174579b94a861148cc537cc47 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 8 Jan 2016 13:38:08 +0100 Subject: [PATCH] Stop IPC timeout timer while executing command. This hopefully helps with #1183. --- qutebrowser/misc/ipc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/misc/ipc.py b/qutebrowser/misc/ipc.py index 66a52bfab..2651fe4a8 100644 --- a/qutebrowser/misc/ipc.py +++ b/qutebrowser/misc/ipc.py @@ -296,7 +296,7 @@ class IPCServer(QObject): # active for some reason. log.ipc.warning("In on_ready_read with None socket!") return - self._timer.start() + self._timer.stop() while self._socket is not None and self._socket.canReadLine(): data = bytes(self._socket.readLine()) self.got_raw.emit(data) @@ -342,6 +342,7 @@ class IPCServer(QObject): cwd = json_data.get('cwd', None) self.got_args.emit(json_data['args'], json_data['target_arg'], cwd) + self._timer.start() @pyqtSlot() def on_timeout(self):