1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fix for Sync not being available.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@431 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-11-25 18:48:47 +00:00
parent 219a322f9e
commit edd6dae41b

View file

@ -39,7 +39,7 @@ module Mongrel
def initialize(klass)
@files = Mongrel::DirHandler.new("/",false)
@guard = Sync.new
@guard = Mutex.new
@klass = klass
end
@ -49,7 +49,7 @@ module Mongrel
end
controller = nil
@guard.synchronize(:EX) {
@guard.synchronize {
controller = @klass.run(request.body, request.params)
}