From 94ba8be35f7f754de2f25af3472532d9d1e819c6 Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Mon, 14 Oct 2024 09:26:34 -0500 Subject: [PATCH] Fix logic. --- src/core/io/pulseaudio_io.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/io/pulseaudio_io.ml b/src/core/io/pulseaudio_io.ml index 7cb56d1ce3..76da06c614 100644 --- a/src/core/io/pulseaudio_io.ml +++ b/src/core/io/pulseaudio_io.ml @@ -216,6 +216,7 @@ class input p = Frame.set_data frame Frame.Fields.audio Content.Audio.lift_data buf with exn -> let bt = Printexc.get_raw_backtrace () in + self#close_device; if fallible then ( let error = Printf.sprintf "Error while reading from pulseaudio: %s"