Skip to content

Disconnecting... #11

@vorgos

Description

@vorgos

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,

Socket connection died.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/python_mpv_jsonipc.py", line 168, in run
    current_data = self.socket.recv(1024)
OSError: [Errno 9] Bad file descriptor

How do I disconnect without an error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions