Fixes #14269 - semaphore released too many times as it always happens in the finally, which is 1 too many times when the upload was a success
This commit is contained in:
@@ -827,13 +827,10 @@ public class MediaController : ContentControllerBase
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_postAddFileSemaphore.Release();
|
||||
_logger.LogError(ex, "Something went wrong adding files");
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_postAddFileSemaphore.Release();
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsFolderCreationAllowedHere(int parentId)
|
||||
|
||||
Reference in New Issue
Block a user