aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 7a3632b0b5..d173c22906 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -173,7 +173,7 @@ module WEBrick
begin
if svrs = IO.select([shutdown_pipe_r, *@listeners], nil, nil, 2.0)
if svrs[0].include? shutdown_pipe_r
- return
+ break
end
svrs[0].each{|svr|
@tokens.pop # blocks while no token is there.