1
0
Fork 0

Server: wait pod removal when finishing a request

This commit is contained in:
Chocobozzz 2016-10-17 21:38:14 +02:00
parent 4648530318
commit c2ee5ce83a
1 changed files with 4 additions and 4 deletions

View File

@ -185,14 +185,14 @@ function makeRequests () {
if (success === true) {
logger.debug('Removing requests for %s pod.', toPodId, { requestsIds: requestToMake.ids })
// Remove the pod id of these request ids
removePodOf.call(self, requestToMake.ids, toPodId)
goodPods.push(toPodId)
// Remove the pod id of these request ids
removePodOf.call(self, requestToMake.ids, toPodId, callbackEach)
} else {
badPods.push(toPodId)
callbackEach()
}
callbackEach()
})
})
}, function () {