Fixes a bug introduced in
86611501 which caused para_audiod to segfault
if the connection to para_server terminated unexpectedly.
para_audiod relies (in kill_btrn()) on a task's ->post_select method
never being called if t->error is negative.
struct task *t, *tmp;
list_for_each_entry_safe(t, tmp, &post_select_list, post_select_node) {
- call_post_select(s, t);
+ if (t->error >= 0)
+ call_post_select(s, t);
// PARA_INFO_LOG("%s: %d\n", t->status, t->ret);
if (t->error >= 0)
continue;