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

View file

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