Skip to content

Commit b6b104f

Browse files
committed
Handle ZMQ.StateError's in the eventloop
1 parent 8783bc8 commit b6b104f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/eventloop.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ function eventloop(socket, kernel)
5050
# chooses to interrupt the kernel; don't crash on this
5151
if isa(e, InterruptException)
5252
eventloop(socket, kernel)
53+
elseif isa(e, ZMQ.StateError)
54+
# This is almost certainly because of a closed socket
55+
return
5356
else
5457
rethrow()
5558
end

0 commit comments

Comments
 (0)