This commit is contained in:
Archi 2023-12-05 01:53:14 +01:00
parent da2fd37aa1
commit b16a459ab8
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -211,6 +211,11 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC
public async Task OnBotInit(Bot bot) {
ArgumentNullException.ThrowIfNull(bot);
if (GlobalCache == null) {
// We can't operate like this anyway, skip initialization of synchronization structures
return;
}
SemaphoreSlim refreshSemaphore = new(1, 1);
Timer refreshTimer = new(OnBotRefreshTimer, bot, Timeout.InfiniteTimeSpan, Timeout.InfiniteTimeSpan);