Fix Dispose
This commit is contained in:
parent
374f8c0843
commit
87d6dbad28
@ -51,9 +51,9 @@ public class LocalStatsCalculator : IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_clientState.Login += UpdateStatistics;
|
||||
_clientState.Logout += UpdateStatistics;
|
||||
_clientState.TerritoryChanged += UpdateStatistics;
|
||||
_clientState.Login -= UpdateStatistics;
|
||||
_clientState.Logout -= UpdateStatistics;
|
||||
_clientState.TerritoryChanged -= UpdateStatistics;
|
||||
}
|
||||
|
||||
private void UpdateStatistics(object? sender, EventArgs e) => UpdateStatistics();
|
||||
|
Loading…
Reference in New Issue
Block a user