]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
afs.cmd: Improve description of blob commands.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 2cbb010dcc8f7d9b35ab2c0ef45ac8a1f5ce7140..f619c08ec85e659414fc3fd3e03a3015a19f91f6 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -716,9 +716,9 @@ static void signal_post_select(struct sched *s, struct task *t)
        if (st->signum == SIGHUP) {
                close_afs_tables();
                t->ret = open_afs_tables();
-               /* FIXME: Restore current mood or playlist */
                if (t->ret < 0)
                        goto err;
+               init_admissible_files(current_mop);
                return;
        }
        t->ret = -E_AFS_SIGNAL;
@@ -833,7 +833,8 @@ static void execute_server_command(void)
        PARA_NOTICE_LOG("received: %s\n", buf);
        if (!strcmp(buf, "new")) {
                ret = open_next_audio_file();
-               PARA_NOTICE_LOG("ret: %d\n", ret);
+               if (ret < 0)
+                       PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
                return;
        }
        PARA_ERROR_LOG("unknown command\n");