afh: Initialize audio format handlers only once.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 9daf7241b8214c82435454b163540eaa8213ed6f..2f521291096eeb3703c9f091ebb739060e68bb6e 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -761,8 +761,7 @@ static void register_signal_task(struct sched *s)
        para_install_sighandler(SIGHUP);
 
        st->task.pre_select = signal_pre_select;
-       st->task.new_post_select = afs_signal_post_select;
-       st->task.post_select = NULL;
+       st->task.post_select = afs_signal_post_select;
        sprintf(st->task.status, "signal task");
        register_task(s, &st->task);
 }
@@ -972,8 +971,7 @@ static void register_command_task(uint32_t cookie, struct sched *s)
        ct->cookie = cookie;
 
        ct->task.pre_select = command_pre_select;
-       ct->task.new_post_select = command_post_select;
-       ct->task.post_select = NULL;
+       ct->task.post_select = command_post_select;
        sprintf(ct->task.status, "afs command task");
        register_task(s, &ct->task);
 }