From abb07d5a21050a75b1c71af412014dd9afaedf42 Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Mon, 14 Oct 2024 14:37:06 -0500 Subject: [PATCH] Better. --- src/core/io/pulseaudio_io.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/io/pulseaudio_io.ml b/src/core/io/pulseaudio_io.ml index 5348aa87af..f2ee387e52 100644 --- a/src/core/io/pulseaudio_io.ml +++ b/src/core/io/pulseaudio_io.ml @@ -123,8 +123,8 @@ class output ~infallible ~register_telnet ~start ~on_start ~on_stop p = try Simple.write stream buf 0 len with exn -> let bt = Printexc.get_backtrace () in - self#close_device; last_try <- Unix.gettimeofday (); + self#close_device; let error = Printf.sprintf "Failed to send pulse audio data: %s" (Printexc.to_string exn) @@ -217,8 +217,8 @@ 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; last_try <- Unix.gettimeofday (); + self#close_device; if fallible then ( let error = Printf.sprintf "Error while reading from pulseaudio: %s"