Method: OpenC3::HttpClientInterface#disconnect

Defined in:
lib/openc3/interfaces/http_client_interface.rb

#disconnectObject

Disconnects the interface from its target(s)



86
87
88
89
90
91
92
93
94
95
96
# File 'lib/openc3/interfaces/http_client_interface.rb', line 86

def disconnect
  @http.close if @http
  @http = nil
  # Clear the response queue
  while @response_queue.length > 0
    @response_queue.pop
  end
  super()
  # Push nil to cause read_interface to return nil
  @response_queue.push(nil)
end