Skip to content

Commit

Permalink
Use setter to determine if backend implements option
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Jul 18, 2008
1 parent 23b7931 commit ebb7b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/thin/controllers/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def start
server.timeout = @options[:timeout]
server.maximum_connections = @options[:max_conns]
server.maximum_persistent_connections = @options[:max_persistent_conns]
server.threaded = @options[:threaded] if server.backend.respond_to?(:threaded)
server.no_epoll = @options[:no_epoll] if server.backend.respond_to?(:no_epoll)
server.threaded = @options[:threaded]
server.no_epoll = @options[:no_epoll] if server.backend.respond_to?(:no_epoll=)

# Detach the process, after this line the current process returns
server.daemonize if @options[:daemonize]
Expand Down

0 comments on commit ebb7b0a

Please sign in to comment.