emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/subed 9fc0cbf 200/389: Remove mpv socket when stopping mpv


From: ELPA Syncer
Subject: [nongnu] elpa/subed 9fc0cbf 200/389: Remove mpv socket when stopping mpv
Date: Fri, 3 Dec 2021 11:00:25 -0500 (EST)

branch: elpa/subed
commit 9fc0cbfcdc0a0a01a0245c8ae8d4ac049a729bde
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>

    Remove mpv socket when stopping mpv
---
 subed/subed-mpv.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index b8fc46a..006af50 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -103,6 +103,10 @@ Pass ARGS as command line arguments.  \"--idle\" and
   (when (and subed-mpv--server-proc (process-live-p subed-mpv--server-proc))
     (delete-process subed-mpv--server-proc)
     (subed-debug "Killed mpv process"))
+  (let ((socket-file (subed-mpv--socket)))
+    (when (file-exists-p socket-file)
+      (subed-debug "Removing IPC socket: %s" socket-file)
+      (ignore-errors (delete-file socket-file))))
   (setq subed-mpv--server-proc nil))
 
 (defun subed-mpv--server-started-p ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]