From 164d9330f0e7e8f3084154732c75a21e9f6220dc Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 15 Jun 2022 18:44:07 +0200 Subject: [PATCH] Do not emit shutdown event when changing the config --- ArchiSteamFarm/Steam/Bot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index 1fc7b0094..41ddf3ec3 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -1406,7 +1406,9 @@ public sealed class Bot : IAsyncDisposable { return; } - Stop(botConfig.Enabled); + // Skip shutdown event as we're actually reinitializing the bot, not fully stopping it + Stop(true); + BotConfig = botConfig; await InitModules().ConfigureAwait(false);