From 4b26333335d82e526571b172dcadd946ecdbd805 Mon Sep 17 00:00:00 2001 From: Stanley Dimant Date: Thu, 3 Nov 2022 10:30:26 +0100 Subject: [PATCH] small fix for disposal of plugin --- MareSynchronos/WebAPI/ApiController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MareSynchronos/WebAPI/ApiController.cs b/MareSynchronos/WebAPI/ApiController.cs index 74e4591..83fee94 100644 --- a/MareSynchronos/WebAPI/ApiController.cs +++ b/MareSynchronos/WebAPI/ApiController.cs @@ -320,9 +320,11 @@ public partial class ApiController : IDisposable, IMareHubClient _dalamudUtil.LogIn -= DalamudUtilOnLogIn; _dalamudUtil.LogOut -= DalamudUtilOnLogOut; + ServerState = ServerState.Offline; Task.Run(async () => await StopConnection(_connectionCancellationTokenSource.Token).ConfigureAwait(false)); _connectionCancellationTokenSource?.Cancel(); _healthCheckTokenSource?.Cancel(); + _uploadCancellationTokenSource?.Cancel(); } private HubConnection BuildHubConnection(string hubName)