From: Andre Noll Date: Thu, 24 Apr 2008 17:06:02 +0000 (+0200) Subject: fade.c: Stop playing if no sleep mode was given. X-Git-Tag: v0.3.3~58 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e17be827920796088151f2d3c709e7066b70cc54;p=paraslash.git fade.c: Stop playing if no sleep mode was given. --- 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 (;;) {