lib/god.rb in god-0.13.6 vs lib/god.rb in god-0.13.7

- old
+ new

@@ -159,11 +159,11 @@ end end module God # The String version number for this package. - VERSION = '0.13.6' + VERSION = '0.13.7' # The Integer number of lines of backlog to keep for the logger. LOG_BUFFER_SIZE_DEFAULT = 100 # An Array of directory paths to be used as the default PID file directory. @@ -488,11 +488,11 @@ # 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.action(:stop) 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?