Skip to content

Commit

Permalink
Before closing the connections, send response
Browse files Browse the repository at this point in the history
So that the game client can close the game gracefully.
  • Loading branch information
sven-n committed Oct 19, 2023
1 parent beef09b commit 17b6ebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GameLogic/PlayerActions/LogoutAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public async ValueTask LogoutAsync(Player player, LogoutType logoutType)

if (logoutType == LogoutType.CloseGame)
{
await player.InvokeViewPlugInAsync<ILogoutPlugIn>(p => p.LogoutAsync(logoutType)).ConfigureAwait(false);
await player.DisconnectAsync().ConfigureAwait(false);
}
else
Expand Down

0 comments on commit 17b6ebe

Please sign in to comment.