Fix packet handling

This commit is contained in:
KingRainbow44
2023-09-16 19:25:37 -04:00
Unverified
parent 3d2e0d0451
commit 539fa16160
3 changed files with 6 additions and 8 deletions
@@ -70,10 +70,8 @@ public final class GameSessionManager implements KcpListener {
}
// Handle the message in a separate thread.
executor.submit(() -> {
var bytes = Utils.byteBufToArray(byteBuf);
session.onMessage(bytes);
});
var bytes = Utils.byteBufToArray(byteBuf);
executor.submit(() -> session.onMessage(bytes));
}
@Override