Skip to content

Commit

Permalink
Fix log message appearing even if client didn't connect
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Aug 27, 2023
1 parent 5047773 commit eb590df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArmaForces.ArmaServerManager/Features/Steam/SteamClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public async Task EnsureConnected(CancellationToken cancellationToken)

private void Disconnect()
{
_logger.LogInformation("Disconnecting client {Guid} from Steam", _clientGuid);
if (!_isConnected)
_logger.LogInformation("Disconnecting client {Guid} from Steam", _clientGuid);

_bytexSteamClient.Shutdown();
_isConnected = false;
}
Expand Down

0 comments on commit eb590df

Please sign in to comment.