From 8cce667e02093f67b3466f2763247a250326ccca Mon Sep 17 00:00:00 2001 From: gamer147 Date: Mon, 1 Jun 2026 11:11:58 -0400 Subject: [PATCH] fix(battle-node): await DispatchSocketIo instead of async-void fire-and-forget --- SVSim.BattleNode/Sessions/BattleSession.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SVSim.BattleNode/Sessions/BattleSession.cs b/SVSim.BattleNode/Sessions/BattleSession.cs index 8ab6b03..1b213dc 100644 --- a/SVSim.BattleNode/Sessions/BattleSession.cs +++ b/SVSim.BattleNode/Sessions/BattleSession.cs @@ -82,7 +82,7 @@ public sealed class BattleSession pendingAttachments.Clear(); continue; } - DispatchSocketIo(sio); + await DispatchSocketIo(sio); } else { @@ -100,13 +100,13 @@ public sealed class BattleSession { var assembled = pendingFrame.WithAttachments(pendingAttachments.ToArray()); pendingFrame = null; - DispatchSocketIo(assembled); + await DispatchSocketIo(assembled); } } } } - private async void DispatchSocketIo(SocketIoFrame frame) + private async Task DispatchSocketIo(SocketIoFrame frame) { if (frame.Type is SocketIoPacketType.Event or SocketIoPacketType.BinaryEvent) {