For whatever reason, the OS is unable clean-up even though associated PID is not valid. All attempts to run the shim after the first run fail with the following error:
[...]
2021-08-25 11:32:07,405 [ DEBUG] mpv-jsonipc: Staring MPV from mpv.
2021-08-25 11:32:07,405 [ DEBUG] mpv-jsonipc: Using IPC socket /tmp/mpv95676054654988 for MPV.
2021-08-25 11:32:07,511 [ DEBUG] mpv-jsonipc: Found MPV socket.
2021-08-25 11:32:07,537 [ INFO] root: Started GDM service
2021-08-25 11:32:07,537 [ INFO] client: Started HTTP server
PlexGDM: Error: Unable to bind to port [32412] - client will not be registered
OS: macos 11.5.2 Python: 3.9.6 and 3.8.11 plex-mpv-shim: 1.10.1
First run works fine, however, when exiting the following error occurs and the socket for GDM is not closed:
For whatever reason, the OS is unable clean-up even though associated PID is not valid. All attempts to run the shim after the first run fail with the following error: