From 87d6dbad283964bc388f48999e1686ad28fceb31 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Wed, 23 Aug 2023 21:10:45 +0200 Subject: [PATCH] Fix Dispose --- Influx/LocalStatistics/LocalStatsCalculator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Influx/LocalStatistics/LocalStatsCalculator.cs b/Influx/LocalStatistics/LocalStatsCalculator.cs index 4f06965..7592946 100644 --- a/Influx/LocalStatistics/LocalStatsCalculator.cs +++ b/Influx/LocalStatistics/LocalStatsCalculator.cs @@ -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();