mirror of https://github.com/Chocobozzz/PeerTube
				
				
				
			Server: wait pod removal when finishing a request
							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
	
	 Chocobozzz
						Chocobozzz