From e351217740d799fb80e982bce43ddb5ef6bef4ce Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 13 Oct 2014 07:09:16 +0200 Subject: [PATCH] Wait until socket bytes are written. --- qutebrowser/utils/ipc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/utils/ipc.py b/qutebrowser/utils/ipc.py index 5c0b262c8..5c8e9abd9 100644 --- a/qutebrowser/utils/ipc.py +++ b/qutebrowser/utils/ipc.py @@ -51,6 +51,7 @@ def send_to_running_instance(cmdlist): log.init.info("Opening in existing instance") line = json.dumps(cmdlist) + '\n' socket.writeData(line.encode('utf-8')) + socket.waitForBytesWritten() else: return False