From 155098af555ef94fb543beb8b82d21523362a7c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Dec 2015 19:17:45 +0100 Subject: Don't make useless requests to friends --- src/poolRequests.js | 2 ++ 1 file changed, 2 insertions(+) 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 @@ PoolRequestsDB.find({}, { type: 1, request: 1 }, function (err, pool_requests) { if (err) throw err + if (pool_requests.length === 0) return + var requests = { add: [], remove: [] -- cgit v1.2.3