aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-12-04 19:17:45 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-12-04 19:17:45 +0100
commit155098af555ef94fb543beb8b82d21523362a7c7 (patch)
tree8db718135c52e93441c1f2019d08e792e0901023
parentc158027179248b3c8d9e08f9c748d3f1b8dff3fb (diff)
downloadPeerTube-155098af555ef94fb543beb8b82d21523362a7c7.tar.gz
PeerTube-155098af555ef94fb543beb8b82d21523362a7c7.tar.zst
PeerTube-155098af555ef94fb543beb8b82d21523362a7c7.zip
Don't make useless requests to friends
-rw-r--r--src/poolRequests.js2
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: []