Fixed peer retrieval.

This commit is contained in:
flash 2025-01-19 21:12:00 +00:00
parent 397ea4e22f
commit 281283c176

View file

@ -127,10 +127,8 @@ class AnnounceRoutes implements RouteHandler {
$this->torrentsCtx->peers->pruneExpiredPeers();
$peerInfos = $this->torrentsCtx->peers->getPeers($torrentInfo);
return new AnnounceInfo(
$peerInfos,
iterator_to_array($this->torrentsCtx->peers->getPeers($torrentInfo), false),
self::INTERVAL,
self::INTERVAL_MIN,
$compact,