Fix Abry potato server

This commit is contained in:
Archi
2023-07-13 22:47:42 +02:00
parent 49a64b75cf
commit bceef4f74e

View File

@@ -195,6 +195,9 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC
}
if (BotSynchronizations.TryRemove(bot, out (SemaphoreSlim RefreshSemaphore, Timer RefreshTimer) synchronization)) {
// Ensure the semaphore is empty, otherwise we're risking disposed exceptions
await synchronization.RefreshSemaphore.WaitAsync().ConfigureAwait(false);
synchronization.RefreshSemaphore.Dispose();
await synchronization.RefreshTimer.DisposeAsync().ConfigureAwait(false);