diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-12-04 19:17:45 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-12-04 19:17:45 +0100 |
commit | 155098af555ef94fb543beb8b82d21523362a7c7 (patch) | |
tree | 8db718135c52e93441c1f2019d08e792e0901023 /src | |
parent | c158027179248b3c8d9e08f9c748d3f1b8dff3fb (diff) | |
download | PeerTube-155098af555ef94fb543beb8b82d21523362a7c7.tar.gz PeerTube-155098af555ef94fb543beb8b82d21523362a7c7.tar.zst PeerTube-155098af555ef94fb543beb8b82d21523362a7c7.zip |
Don't make useless requests to friends
Diffstat (limited to 'src')
-rw-r--r-- | src/poolRequests.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/poolRequests.js b/src/poolRequests.js index b117c9923..ee6c0156e 100644 --- a/src/poolRequests.js +++ b/src/poolRequests.js | |||
@@ -29,6 +29,8 @@ | |||
29 | PoolRequestsDB.find({}, { type: 1, request: 1 }, function (err, pool_requests) { | 29 | PoolRequestsDB.find({}, { type: 1, request: 1 }, function (err, pool_requests) { |
30 | if (err) throw err | 30 | if (err) throw err |
31 | 31 | ||
32 | if (pool_requests.length === 0) return | ||
33 | |||
32 | var requests = { | 34 | var requests = { |
33 | add: [], | 35 | add: [], |
34 | remove: [] | 36 | remove: [] |