lib/cloud_crowd/node.rb
# At shut down, de-register with the central server before exiting.
At shut down, de-register with the central server before exiting.
At shut down de - register with the central server before exiting .
def shut_down
      @check_in_thread.kill if @check_in_thread
      @monitor_thread.kill if @monitor_thread
      check_out
      @server_thread.kill if @server_thread
      Process.exit
    end
def shut_down @check_in_thread . kill if @check_in_thread @monitor_thread . kill if @monitor_thread check_out @server_thread . kill if @server_thread Process . exit end
At shut down, de-register with the central server before exiting.
At shut down de - register with the central server before exiting .