Skip to content

Commit

Permalink
T::P::Worker calls self.app instead of @app so subclasses can overri…
Browse files Browse the repository at this point in the history
…de the accessor with an ordinary method
  • Loading branch information
telent committed Apr 18, 2011
1 parent 3c9e0ee commit 5648b34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/thin/prefork.rb
Expand Up @@ -2,8 +2,6 @@
require 'thin'
require 'socket'

#Thin=Module.new

class Thin::Prefork
module NamedArgs
def set_attr_from_hash(args)
Expand All @@ -12,7 +10,7 @@ def set_attr_from_hash(args)
}
end
end

attr_accessor :num_workers,:app,:host,:port,:stderr,:slow_start,:pid_file
attr_accessor :worker_class
include NamedArgs
Expand Down Expand Up @@ -111,7 +109,7 @@ def c.receive_data(data)
end
end
self.start!
Rack::Handler::Thin.run(@app,:Host=>@host, :Port=>@port)
Rack::Handler::Thin.run(self.app,:Host=>@host, :Port=>@port)
end
end
end
Expand Down

0 comments on commit 5648b34

Please sign in to comment.