Wait until socket bytes are written.

This commit is contained in:
Florian Bruhin 2014-10-13 07:09:16 +02:00
parent fdb24ff597
commit e351217740

View File

@ -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