mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-18 13:28:12 -04:00
Update MinDurationLoadingService.cs (#897)
This commit is contained in:
committed by
Leendert de Borst
parent
c6faa4db97
commit
27d19759c8
@@ -76,6 +76,19 @@ public class MinDurationLoadingService : IDisposable
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
_loadingStates.Clear();
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Protected implementation of Dispose pattern.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True if called from Dispose, false if called from finalizer.</param>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
_loadingStates.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user