Method: Fleck.terminate

Defined in:
lib/fleck.rb

.terminateObject



54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/fleck.rb', line 54

def self.terminate
  @connections.each do |key, connection|
    begin
      Fleck.logger.info "Closing connection #{key}"
      connection.close
    rescue => e
      Fleck.logger.error e.inspect
    end
  end
  @connections.clear

  true
end