From 73f3728d080c65269a76b9f327afa13b22fb28e4 Mon Sep 17 00:00:00 2001 From: FlUxIuS Date: Mon, 9 Dec 2024 16:24:58 +0100 Subject: [PATCH] Wait for PulseAudio to start --- go/rfswift/rfutils/hostcli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/rfswift/rfutils/hostcli.go b/go/rfswift/rfutils/hostcli.go index 005dfa3..f3729da 100644 --- a/go/rfswift/rfutils/hostcli.go +++ b/go/rfswift/rfutils/hostcli.go @@ -328,6 +328,7 @@ func ensurePulseAudioRunning() error { return fmt.Errorf("failed to start PulseAudio: %w", startErr) } fmt.Println("PulseAudio started successfully.") + time.Sleep(2 * time.Second) // Wait for 2 seconds } else { fmt.Println("PulseAudio is already running.") }