Method: HomeQ::CP::Server#stop

Defined in:
lib/homeq/cp/server.rb

#stopObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/homeq/cp/server.rb', line 72

def stop
  EventMachine.stop_server(@signature)
  unless wait_for_connections
    # Still some running
    EventMachine.add_periodic_timer(1) {
      logger.info {
        '.'
      }
      wait_for_connections
    }
  end
end