We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 554e1cf commit 9a6bd14Copy full SHA for 9a6bd14
1 file changed
AIDevGallery/Samples/SharedCode/IChatClient/FoundryLocalChatClientFactory.cs
@@ -30,7 +30,14 @@ internal static class FoundryLocalChatClientFactory
30
AppName = "AIDevGallery"
31
};
32
33
- await FoundryLocalManager.CreateAsync(config, NullLogger.Instance);
+ try
34
+ {
35
+ await FoundryLocalManager.CreateAsync(config, NullLogger.Instance);
36
+ }
37
+ catch (FoundryLocalException) when (FoundryLocalManager.IsInitialized)
38
39
+ Debug.WriteLine("[FoundryLocal] Manager already initialized by another caller; proceeding.");
40
41
}
42
43
var manager = FoundryLocalManager.Instance;
0 commit comments