This commit is contained in:
Kovid Goyal 2024-08-14 13:41:28 +05:30
parent 73a5036134
commit c867bcaf99
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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