# File lib/nxt.rb, line 183
  def disconnect
    @sensor_threads.each {|i,t| t.join}
    @motor_threads.each {|i,t| t.join}
    @nxt.close
  end