Fixed peer retrieval.
This commit is contained in:
parent
397ea4e22f
commit
281283c176
1 changed files with 1 additions and 3 deletions
|
@ -127,10 +127,8 @@ class AnnounceRoutes implements RouteHandler {
|
||||||
|
|
||||||
$this->torrentsCtx->peers->pruneExpiredPeers();
|
$this->torrentsCtx->peers->pruneExpiredPeers();
|
||||||
|
|
||||||
$peerInfos = $this->torrentsCtx->peers->getPeers($torrentInfo);
|
|
||||||
|
|
||||||
return new AnnounceInfo(
|
return new AnnounceInfo(
|
||||||
$peerInfos,
|
iterator_to_array($this->torrentsCtx->peers->getPeers($torrentInfo), false),
|
||||||
self::INTERVAL,
|
self::INTERVAL,
|
||||||
self::INTERVAL_MIN,
|
self::INTERVAL_MIN,
|
||||||
$compact,
|
$compact,
|
||||||
|
|
Loading…
Add table
Reference in a new issue