lib/teaspoon/server.rb in teaspoon-0.8.0 vs lib/teaspoon/server.rb in teaspoon-0.9.0
- old
+ new
@@ -2,17 +2,18 @@
require "timeout"
require "webrick"
module Teaspoon
class Server
-
attr_accessor :port
def initialize
@port = Teaspoon.configuration.server_port || find_available_port
end
def start
+ return if responsive?
+
thread = Thread.new do
disable_logging
server = Rack::Server.new(rack_options)
server.start
end