fix: Add yield statement to ensure host finishes starting before logging or connecting

This commit is contained in:
HueByte
2026-02-19 06:25:29 +01:00
parent ff0ab068dc
commit 1827f25944
@@ -15,6 +15,9 @@ public sealed class ServerDirectoryService(
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
// Yield to let the host finish starting before we log or connect
await Task.Yield();
var isPublic = configuration.GetValue<bool>("Server:PublicServer");
if (!isPublic)
{