Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Nov 7, 2024
1 parent aab9f76 commit 1a77fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Engine/Kestrel/Hosting/KestrelServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ internal KestrelServer(IServerCompanion? companion, ServerConfiguration configur

Application = Spawn();

using var semaphore = new SemaphoreSlim(0, 1);
using var startEvent = new ManualResetEventSlim(false);

Task.Run(async () =>
{
await Start();
semaphore.Release();
startEvent.Set();
});

semaphore.Wait();
startEvent.Wait();
}

#endregion
Expand Down

0 comments on commit 1a77fbe

Please sign in to comment.