Skip to content

Commit

Permalink
Update Server.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryStarlk authored Jan 21, 2024
1 parent 0003f95 commit 31965d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Obsidian/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public static string VERSION
private readonly ILogger _logger;

private IConnectionListener? _tcpListener;
private bool _isFullyInitialized;

public ProtocolVersion Protocol => DefaultProtocol;

Expand Down Expand Up @@ -290,7 +289,6 @@ public async Task RunAsync()
continue;

_logger.LogInformation("Listening for new clients...");
_isFullyInitialized = true;

try
{
Expand Down Expand Up @@ -335,7 +333,7 @@ private async Task AcceptClientsAsync()
}
connection = acceptedConnection;

if (!_isFullyInitialized)
if (!WorldManager.ReadyToJoin)
{
connection.Abort();
await connection.DisposeAsync();
Expand Down

0 comments on commit 31965d4

Please sign in to comment.