I don't think so, self.peer_cache.get_peer() is only executed is candidate is None.