mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-26 02:30:37 -06:00
Server: wait pod removal when finishing a request
This commit is contained in:
parent
4648530318
commit
c2ee5ce83a
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user