From 64b396b619cdcfe7c621209a23e6d6057a5b631b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 15 Apr 2008 07:24:44 +0200 Subject: [PATCH] audiod: Do not restart the receiver too early. Wait at least until the receiver node has been closed. --- audiod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index c17a4ae4..f4ff3ed3 100644 --- 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; -- 2.39.5