about summary refs log tree commit homepage
path: root/lib/mongrel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mongrel.rb')
-rw-r--r--lib/mongrel.rb8
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