Skip to content

Commit 4ea5643

Browse files
authored
Merge pull request #121 from ocaml-multicore/fix-queue-pop
Fix Saturn.Queue function
2 parents abaa4a3 + 7025ff9 commit 4ea5643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/multi_channel.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ let recv_poll_with_dls mchan dls =
147147
Ws_deque.pop (Array.unsafe_get mchan.channels dls.id)
148148
with
149149
| Exit ->
150-
match Foreign_queue.pop mchan.foreign_queue with
150+
match Foreign_queue.pop_opt mchan.foreign_queue with
151151
| None -> recv_poll_loop mchan dls 0
152152
| Some v -> v
153153
[@@inline]

0 commit comments

Comments
 (0)