Skip to content

Commit

Permalink
Newlines were removed from self.stop_all in god.rb, which caused malf…
Browse files Browse the repository at this point in the history
…ormed ruby code and tests to fail.
  • Loading branch information
Dennis Rowe committed Dec 30, 2011
1 parent 6c063e5 commit ad5e149
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/god.rb
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,13 @@ def self.control(name, command)
#
# Returns true on success, false if all tasks could not be stopped within 10
# seconds
def self.stop_all self.watches.sort.each do |name, w| Thread.new do
w.unmonitor if w.state != :unmonitored w.action(:stop) if w.alive? end end
def self.stop_all
self.watches.sort.each do |name, w|
Thread.new do
w.unmonitor if w.state != :unmonitored
w.action(:stop) if w.alive?
end
end

terminate_timeout.times do
return true unless self.watches.map { |name, w| w.alive? }.any?
Expand Down

0 comments on commit ad5e149

Please sign in to comment.