From 2d0db6c71dd4a4f2fc7b8e0df05026415a9e7b34 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 11 Jul 2021 14:03:01 -0400 Subject: [PATCH] Wait for a a synchronous task --- .../Components/Watchdog/WindowsWatchdog.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs index f2c22f9bc2..c1919b7e41 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs @@ -105,7 +105,8 @@ namespace Tgstation.Server.Host.Components.Watchdog } catch { - _ = DisposeAsync(); + // synchronous + DisposeAsync().AsTask().Wait(); throw; } }