mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
mediaapi/writers/download: Unlock activeRemoteRequests after too many tries
This commit is contained in:
parent
f0c6ec23c9
commit
b6af021858
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue