original_docstring: Clear out inactive stream.
  
          Arlo stream changes frequently so we trap that and clear down the stream device.
          
docstring: Clear out inactive stream.
  Arlo stream changes frequently so we trap that and clear down the stream device.
docstring_tokens: Clear out inactive stream . Arlo stream changes frequently so we trap that and clear down the stream device .
code: def clear_stream(self):
          """Clear out inactive stream.
  
          Arlo stream changes frequently so we trap that and clear down the stream device.
          """
          if hasattr(self, "stream"):
              if self.stream:
                  _LOGGER.debug("clearing out stream variable")
                  self.stream.stop()
                  self.stream = None
code_tokens: def clear_stream ( self ) : if hasattr ( self , "stream" ) : if self . stream : _LOGGER . debug ( "clearing out stream variable" ) self . stream . stop ( ) self . stream = None
short_docstring: Clear out inactive stream.
short_docstring_tokens: Clear out inactive stream .
comment: """Clear out inactive stream.
  
          Arlo stream changes frequently so we trap that and clear down the stream device.
          """