From ea75b45c2df05c1e6ca411958ba289f941d88a8e Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 3 May 2017 11:06:25 +0100 Subject: [PATCH] Fix missing IOError rescue on shutdown (#212) I'm not entirely sure that this rescue is in the right place but it does fix the issue. I did try putting it in handle_connection first but that was ineffective. --- lib/reel/server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/reel/server.rb b/lib/reel/server.rb index 226cd91..b151914 100644 --- a/lib/reel/server.rb +++ b/lib/reel/server.rb @@ -36,6 +36,7 @@ def shutdown def run loop { async.handle_connection @server.accept } + rescue IOError end def handle_connection(socket)