Skip to content

Commit 7025ff9

Browse files
committed
Fix Saturn.Queue function
Now needs pop_opt
1 parent abaa4a3 commit 7025ff9

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)