Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Oct 14, 2024
1 parent fb7d36d commit abb07d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/io/pulseaudio_io.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit abb07d5

Please sign in to comment.