mediaapi/writers/download: Unlock activeRemoteRequests after too many tries

This commit is contained in:
Robert Swain 2017-05-11 09:18:02 +02:00
parent f0c6ec23c9
commit b6af021858

View file

@ -144,6 +144,7 @@ func Download(w http.ResponseWriter, req *http.Request, origin types.ServerName,
Code: 500,
JSON: jsonerror.Unknown(fmt.Sprintf("File with media ID %q could not be downloaded from %q", r.MediaMetadata.MediaID, r.MediaMetadata.Origin)),
}, logger)
activeRemoteRequests.Unlock()
return
}
logger.WithFields(log.Fields{