code: def reconnect(self, exc=None):
          
          # Reset protocol binding before starting reconnect
          self.protocol = None
  
          if not self.closing:
              log.warning('disconnected from Rflink, reconnecting')
              self.loop.create_task(self.connect())
docs: Schedule reconnect after connection has been unexpectedly lost.