From e17be827920796088151f2d3c709e7066b70cc54 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 24 Apr 2008 19:06:02 +0200 Subject: [PATCH] fade.c: Stop playing if no sleep mode was given. --- fade.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fade.c b/fade.c index 6b876801..48faed83 100644 --- a/fade.c +++ b/fade.c @@ -238,7 +238,10 @@ static int sweet_dreams(void) if (ret < 0) return ret; } - change_afs_mode_and_play(sleep_mode); + if (conf.sleep_mode_given) + change_afs_mode_and_play(sleep_mode); + else + client_cmd("stop"); if (!wf) return 1; for (;;) { -- 2.39.5