-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disconnecting... #11
Comments
That error just tells you that the socket was disconnected. If you disconnect it then it’s expected. |
Thanks. But why is it inconsistent? If I run it 5 times, it might error once. Also, shouldn't wrapping |
I'm not sure why the error is inconsistent. Usually the socket will return an empty string when it is closed but it seems like sometimes for you it is giving an exception. There is already a try-catch but it prints out the exception as it is considered unexpected. (Are you on Linux or some other platform? Maybe it's a platform-specific thing.) |
I am working on a Ubuntu 21.04 I am just starting to play around at the moment. My code so far is connecting to the instance and disconnecting. I wanted to confirm what I was seeing before I continue. Thanks. |
I'm playing around and I can create a new instance of MPV or connect to an existing one just fine, but I am not sure how to disconnect once connected.
Looking at whats available,
mpv.terminate()
seems to be the right thing but now and again I get,How do I disconnect without an error?
The text was updated successfully, but these errors were encountered: