aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--player.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/player.go b/player.go
index d819abc..597d6ed 100644
--- a/player.go
+++ b/player.go
@@ -225,7 +225,10 @@ func (player *MpvPlayer) _stop() {
// mpv is actually running.
if mpv.Process != nil {
llog.Debug("Send SIGTERM to mpv subprocess")
- mpv.Process.Signal(syscall.SIGTERM)
+ err := mpv.Process.Signal(syscall.SIGTERM)
+ if err != nil {
+ llog.Warning("Signalling mpv with SIGTERM failed: %v", err)
+ }
} else {
llog.Fatal("mpv process is not running yet")
}