Don't make useless requests to friends

This commit is contained in:
Chocobozzz 2015-12-04 19:17:45 +01:00
parent c158027179
commit 155098af55

View File

@ -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: []