aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kazantsev <mk.fraggod@gmail.com>2018-06-06 19:07:51 +0500
committerfraggod@malediction <mk.fraggod@gmail.com>2018-06-06 19:11:05 +0500
commita23ee71cd1340f34bb57ab713d86dbf5d19aeaae (patch)
treef12f02d003d0fe78cd1af1351625f2e05cf8933e
parentc70124a0bc28027f98ccea103a0d89340898d71f (diff)
* lisp/emms-player-mpv.el: reset emms-player-mpv-proc after initial interrupt/delete
This is to avoid leaving unreferenced process alive when execution is interrupted via C-g or SIGUSR2.
-rw-r--r--lisp/emms-player-mpv.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index fdf64b6..3a49ba7 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -388,7 +388,6 @@ MEDIA-ARGS are used instead of --idle, if specified."
(when emms-player-mpv-proc
(let ((proc emms-player-mpv-proc))
(emms-player-mpv-debug-msg "proc[%s]: stop" proc)
- (setq emms-player-mpv-proc nil)
(if (not (process-live-p proc))
(delete-process proc)
(emms-player-mpv-proc-playing nil proc)
@@ -398,7 +397,8 @@ MEDIA-ARGS are used instead of --idle, if specified."
emms-player-mpv-proc-kill-delay nil
(lambda (proc)
(delete-process proc))
- proc))))))
+ proc))))
+ (setq emms-player-mpv-proc nil)))
;; ----- IPC socket/fifo