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:
parent
219a322f9e
commit
edd6dae41b
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ module Mongrel
|
||||||
|
|
||||||
def initialize(klass)
|
def initialize(klass)
|
||||||
@files = Mongrel::DirHandler.new("/",false)
|
@files = Mongrel::DirHandler.new("/",false)
|
||||||
@guard = Sync.new
|
@guard = Mutex.new
|
||||||
@klass = klass
|
@klass = klass
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ module Mongrel
|
||||||
end
|
end
|
||||||
|
|
||||||
controller = nil
|
controller = nil
|
||||||
@guard.synchronize(:EX) {
|
@guard.synchronize {
|
||||||
controller = @klass.run(request.body, request.params)
|
controller = @klass.run(request.body, request.params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue