Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Server: wait pod removal when finishing a request

Chocobozzzc2ee5ce83a2d
diff --git a/server/models/request.js b/server/models/request.js
index 2d1c5af158..1a99dd2ea6 100644
--- a/server/models/request.js
+++ b/server/models/request.js
@@ -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 () {