Skip to content

Commit

Permalink
Fixed a bug with set :running not actually setting itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Balatero committed Jun 10, 2009
1 parent 8194682 commit 7d492b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sinatra/base.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -886,8 +886,9 @@ def run!(options={})
server.respond_to?(:stop!) ? server.stop! : server.stop server.respond_to?(:stop!) ? server.stop! : server.stop
puts "\n== Sinatra has ended his set (crowd applauds)" unless handler_name =~/cgi/i puts "\n== Sinatra has ended his set (crowd applauds)" unless handler_name =~/cgi/i
end end

set :running, true
end end
set :running, true
rescue Errno::EADDRINUSE => e rescue Errno::EADDRINUSE => e
puts "== Someone is already performing on port #{port}!" puts "== Someone is already performing on port #{port}!"
end end
Expand Down

0 comments on commit 7d492b2

Please sign in to comment.