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 c17a4ae..f4ff3ed 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;