Attempt to fix mpv quit error (#571) (#578)

This commit is contained in:
Etoh 2023-02-28 20:32:00 +00:00 committed by GitHub
parent 8116e7744b
commit c8e260c8f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -85,8 +85,6 @@ class WindowsSocket(threading.Thread):
try: try:
self.socket.send_bytes(json.dumps(data).encode('utf-8') + b'\n') self.socket.send_bytes(json.dumps(data).encode('utf-8') + b'\n')
except OSError as ex: except OSError as ex:
if len(ex.args) == 1 and ex.args[0] == "handle is closed":
raise BrokenPipeError("handle is closed")
raise ex raise ex
def run(self): def run(self):