Fix Dispose

This commit is contained in:
Liza 2023-08-23 21:10:45 +02:00
parent 374f8c0843
commit 87d6dbad28
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -51,9 +51,9 @@ public class LocalStatsCalculator : IDisposable
public void Dispose() public void Dispose()
{ {
_clientState.Login += UpdateStatistics; _clientState.Login -= UpdateStatistics;
_clientState.Logout += UpdateStatistics; _clientState.Logout -= UpdateStatistics;
_clientState.TerritoryChanged += UpdateStatistics; _clientState.TerritoryChanged -= UpdateStatistics;
} }
private void UpdateStatistics(object? sender, EventArgs e) => UpdateStatistics(); private void UpdateStatistics(object? sender, EventArgs e) => UpdateStatistics();