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) {