Skip to content

Commit c6dda3c

Browse files
committedMay 6, 2020
LTerm_read_line: fix synchronization
1 parent 40b2092 commit c6dda3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/lTerm_read_line.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ object(self)
11631163
(* The main loop. *)
11641164
method private loop =
11651165
Lwt.pick [
1166-
Lwt.(>|=) (LTerm.read_event term) (fun ev-> Ev ev);
1166+
(Lwt.pause () >>= fun ()-> Lwt.(>|=) (LTerm.read_event term) (fun ev-> Ev ev));
11671167
Lwt.(>|=) (Lwt_mvar.take result) (fun r-> Loop_result r);
11681168
Lwt.(>|=) (Lwt_mvar.take self#interrupt) (fun e-> Interrupted e);
11691169
]

0 commit comments

Comments
 (0)
Please sign in to comment.