Skip to content

Commit

Permalink
don't touch Lwt_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
pqwy committed Sep 1, 2022
1 parent 3dd2d16 commit 3a09179
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src-lwt/notty_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ module Term = struct
let t = Lazy.force t in
winsize fd |> whenopt (set_size t);
Lwt.async (fun () -> write t); (* XXX async? *)
if dispose then
Lwt_sequence.add_r (fun () -> release t)
Lwt_main.exit_hooks [@warning "-3"] |> ignore;
if dispose then Lwt_main.at_exit (fun () -> release t);
t

let events t = t.events
Expand Down

0 comments on commit 3a09179

Please sign in to comment.