Skip to content

Commit 48e7a20

Browse files
committed
Handle ZMQ.StateError's in the eventloop
1 parent e344d5e commit 48e7a20

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
@@ -43,6 +43,9 @@ function eventloop(socket, kernel)
4343
# chooses to interrupt the kernel; don't crash on this
4444
if isa(e, InterruptException)
4545
eventloop(socket, kernel)
46+
elseif isa(e, ZMQ.StateError)
47+
# This is almost certainly because of a closed socket
48+
return
4649
else
4750
rethrow()
4851
end

0 commit comments

Comments
 (0)