code: def disconnect(self, timeout=None, blocking=True):
          
          self.socket_client.disconnect()
          if blocking:
              self.join(timeout=timeout)
docs: Disconnects the chromecast and waits for it to terminate.
  
          :param timeout: a floating point number specifying a timeout for the
                          operation in seconds (or fractions thereof). Or None
                          to block forever.
          :param blocking: If True it will block until the disconnection is
                           complete, otherwise it will return immediately.