]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
audiod: Dump audiod status after command execution.
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index b5047d3745056703b8afab1ac85e81777cadaca7..c03867c1b86a27551f24c5b97a608f9e1107d2e8 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2010 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -893,7 +893,9 @@ int reload_current_mood(void)
 int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb,
                void *data)
 {
-       switch(event) {
+       if (!current_mood)
+               return 0;
+       switch (event) {
        /*
         * The three blob events might change the set of admissible files,
         * so we must reload the score list.