lib/chook/server.rb in chook-1.1.1 vs lib/chook/server.rb in chook-1.1.2
- old
+ new
@@ -82,10 +82,14 @@
set :show_exceptions, :after_handler if development?
set :root, "#{File.dirname __FILE__}/server"
enable :static
enable :sessions
set :sessions, expire_after: Chook.config.admin_session_expires if Chook.config.admin_user
- enable :lock unless Chook.config.concurrency
+ if Chook.config.concurrency
+ set :threaded, true
+ else
+ enable :lock
+ end
end # configure
Chook::HandledEvent::Handlers.load_handlers
end # prep to run