Attempt to fix mpv quit error (#571)

This commit is contained in:
Etoh 2022-12-29 17:45:29 +00:00 committed by GitHub
parent 0c8c865def
commit 75135b253d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):