mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 13:34:14 +01:00
use chunks for cleanup
This commit is contained in:
parent
41e73d6fba
commit
8c8c3509d3
4 changed files with 66 additions and 44 deletions
|
|
@ -16,7 +16,6 @@ using Microsoft.AspNetCore.SignalR;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Security.Cryptography;
|
||||
using System.Security.Policy;
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
|
|
@ -230,6 +229,7 @@ public class ServerFilesController : ControllerBase
|
|||
finally
|
||||
{
|
||||
fileLock.Release();
|
||||
fileLock.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -305,6 +305,7 @@ public class ServerFilesController : ControllerBase
|
|||
finally
|
||||
{
|
||||
fileLock.Release();
|
||||
fileLock.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -388,6 +389,7 @@ public class ServerFilesController : ControllerBase
|
|||
finally
|
||||
{
|
||||
fileLock.Release();
|
||||
fileLock.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue