Skip to content

Commit 7b847ea

Browse files
committed
Do not watch over IPC.config if --no-config-watch is used
1 parent c619828 commit 7b847ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArchiSteamFarm/IPC/ArchiKestrel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ private static async Task<WebApplication> CreateWebApplication() {
456456
}
457457

458458
// Set up custom config to be used
459-
builder.WebHost.UseConfiguration(new ConfigurationBuilder().SetBasePath(absoluteConfigDirectory).AddJsonFile(SharedInfo.IPCConfigFile, false, true).Build());
459+
builder.WebHost.UseConfiguration(new ConfigurationBuilder().SetBasePath(absoluteConfigDirectory).AddJsonFile(SharedInfo.IPCConfigFile, false, Program.ConfigWatch).Build());
460460
}
461461

462462
builder.WebHost.ConfigureKestrel(options => {

0 commit comments

Comments
 (0)