diff options
Diffstat (limited to 'lib/mongrel.rb')
-rw-r--r-- | lib/mongrel.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb index 967f0cd..da99356 100644 --- a/lib/mongrel.rb +++ b/lib/mongrel.rb @@ -809,13 +809,11 @@ module Mongrel # Stops the acceptor thread and then causes the worker threads to finish # off the request queue before finally exiting. - def stop(asynchronous=true) - if asynchronous - stopper = Thread.new { @acceptor.raise(StopServer.new) } - stopper.priority = 10 - else + def stop + stopper = Thread.new do @acceptor.raise(StopServer.new) end + stopper.priority = 10 end end |