Skip to content

Commit

Permalink
Fix missing IOError rescue on shutdown (celluloid#212)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chewi committed May 3, 2017
1 parent e3cd7bf commit af9bc1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reel/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def shutdown

def run
loop { async.handle_connection @server.accept }
rescue IOError
end

def handle_connection(socket)
Expand Down

0 comments on commit af9bc1f

Please sign in to comment.