Wait until socket bytes are written.
This commit is contained in:
parent
fdb24ff597
commit
e351217740
@ -51,6 +51,7 @@ def send_to_running_instance(cmdlist):
|
|||||||
log.init.info("Opening in existing instance")
|
log.init.info("Opening in existing instance")
|
||||||
line = json.dumps(cmdlist) + '\n'
|
line = json.dumps(cmdlist) + '\n'
|
||||||
socket.writeData(line.encode('utf-8'))
|
socket.writeData(line.encode('utf-8'))
|
||||||
|
socket.waitForBytesWritten()
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user