From 17b6ebe6266c926102eadeacde8cf3bb58f5ca59 Mon Sep 17 00:00:00 2001 From: sven-n Date: Thu, 19 Oct 2023 19:24:13 +0200 Subject: [PATCH] Before closing the connections, send response So that the game client can close the game gracefully. --- src/GameLogic/PlayerActions/LogoutAction.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GameLogic/PlayerActions/LogoutAction.cs b/src/GameLogic/PlayerActions/LogoutAction.cs index caf0e8c29..6f8a2c783 100644 --- a/src/GameLogic/PlayerActions/LogoutAction.cs +++ b/src/GameLogic/PlayerActions/LogoutAction.cs @@ -34,6 +34,7 @@ public async ValueTask LogoutAsync(Player player, LogoutType logoutType) if (logoutType == LogoutType.CloseGame) { + await player.InvokeViewPlugInAsync(p => p.LogoutAsync(logoutType)).ConfigureAwait(false); await player.DisconnectAsync().ConfigureAwait(false); } else