Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Index: lib/mongrel/camping.rb
  2. ===================================================================
  3. --- lib/mongrel/camping.rb (revision 430)
  4. +++ lib/mongrel/camping.rb (working copy)
  5. @@ -39,7 +39,7 @@
  6.  
  7. def initialize(klass)
  8. @files = Mongrel::DirHandler.new("/",false)
  9. - @guard = Sync.new
  10. + @guard = Mutex.new
  11. @klass = klass
  12. end
  13.  
  14. @@ -49,7 +49,7 @@
  15. end
  16.  
  17. controller = nil
  18. - @guard.synchronize(:EX) {
  19. + @guard.synchronize {
  20. controller = @klass.run(request.body, request.params)
  21. }
Add Comment
Please, Sign In to add comment