code: def _monitor_for_zero_connected_peers(self):
          
          if len(self.Peers) == 0 and len(self.connection_queue) == 0:
              if self.peer_zero_count > 2:
                  logger.debug("Peer count 0 exceeded max retries threshold, restarting...")
                  self.Restart()
              else:
                  logger.debug(
                      f"Peer count is 0, allow for retries or queued connections to be established {self.peer_zero_count}")
                  self.peer_zero_count += 1
docs: Track if we lost connection to all peers.
          Give some retries threshold to allow peers that are in the process of connecting or in the queue to be connected to run