mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
73a5036134
commit
c867bcaf99
@ -139,6 +139,7 @@ class Browser:
|
|||||||
|
|
||||||
def _send_command(self, cmd):
|
def _send_command(self, cmd):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
self._ensure_state()
|
||||||
self.worker.stdin.write(json.dumps(cmd).encode())
|
self.worker.stdin.write(json.dumps(cmd).encode())
|
||||||
self.worker.stdin.write(b'\n')
|
self.worker.stdin.write(b'\n')
|
||||||
self.worker.stdin.flush()
|
self.worker.stdin.flush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user