Skip to content

Commit a472045

Browse files
Block on OmniSim Blazor stack
1 parent 3b47025 commit a472045

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ASCOM.Alpaca.Simulators/Program.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,12 @@ public static void Main(string[] args)
149149

150150
var BlazorTask = InitServers(args);
151151

152-
BlazorTask.Start();
152+
BlazorTask.RunSynchronously();
153153

154-
Console.ReadLine();
155-
156-
// Perform your work here.
154+
Console.WriteLine("OmniSim shutting down...");
157155
}
158156
finally
159157
{
160-
// edited by acidzombie24, added if statement
161158
if (hasHandle)
162159
mutex.ReleaseMutex();
163160
}

0 commit comments

Comments
 (0)