From 31965d4076abbdccdec272b8388e436b8a3e3643 Mon Sep 17 00:00:00 2001 From: Starlk Date: Mon, 22 Jan 2024 02:23:58 +0300 Subject: [PATCH] Update Server.cs --- Obsidian/Server.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Obsidian/Server.cs b/Obsidian/Server.cs index ef6379598..a7e72fe39 100644 --- a/Obsidian/Server.cs +++ b/Obsidian/Server.cs @@ -67,7 +67,6 @@ public static string VERSION private readonly ILogger _logger; private IConnectionListener? _tcpListener; - private bool _isFullyInitialized; public ProtocolVersion Protocol => DefaultProtocol; @@ -290,7 +289,6 @@ public async Task RunAsync() continue; _logger.LogInformation("Listening for new clients..."); - _isFullyInitialized = true; try { @@ -335,7 +333,7 @@ private async Task AcceptClientsAsync() } connection = acceptedConnection; - if (!_isFullyInitialized) + if (!WorldManager.ReadyToJoin) { connection.Abort(); await connection.DisposeAsync();