audiod: Do not restart the receiver too early.
authorAndre Noll <maan@systemlinux.org>
Tue, 15 Apr 2008 05:24:44 +0000 (07:24 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 15 Apr 2008 05:24:44 +0000 (07:24 +0200)
Wait at least until the receiver node has been closed.

audiod.c

index c17a4ae444fad58f597c1f886c0c573d463cd88b..f4ff3ed399c2b089cce4b714d22437378fd6aafe 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -383,8 +383,7 @@ static int receiver_running(int format)
 
        FOR_EACH_SLOT(i) {
                struct slot_info *s = &slot[i];
-               if (s->format == format && s->receiver_node
-                               && s->receiver_node->task.error >= 0)
+               if (s->format == format && s->receiver_node)
                        return 1;
        }
        return 0;