Skip to content

Commit a3be3ca

Browse files
authored
Code Quality: Fixed semaphore to change for each type of build (#13404)
1 parent af6bc6f commit a3be3ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Files.App/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private async void Window_Closed(object sender, WindowEventArgs args)
330330
await FilePropertiesHelpers.WaitClosingAll();
331331

332332
// Sleep current instance
333-
Program.Pool = new(0, 1, "Files-Instance");
333+
Program.Pool = new(0, 1, $"Files-{ApplicationService.AppEnvironment}-Instance");
334334
Thread.Yield();
335335
if (Program.Pool.WaitOne())
336336
{

src/Files.App/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal class Program
1818

1919
static Program()
2020
{
21-
Pool = new(0, 1, "Files-Instance", out var isNew);
21+
Pool = new(0, 1, $"Files-{ApplicationService.AppEnvironment}-Instance", out var isNew);
2222
if (!isNew)
2323
{
2424
// Resume cached instance

0 commit comments

Comments
 (0)