Skip to content

Commit 2509459

Browse files
committed
Misc
1 parent 8f75042 commit 2509459

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ArchiSteamFarm/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,12 @@ internal static void OnBotShutdown() {
353353
}
354354

355355
private static void Shutdown() {
356-
WCF.StopServer();
356+
if (ShutdownResetEvent.IsSet) {
357+
return;
358+
}
359+
357360
ShutdownResetEvent.Set();
361+
WCF.StopServer();
358362

359363
foreach (Bot bot in Bot.Bots.Values) {
360364
bot.Stop();

0 commit comments

Comments
 (0)