mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 16:24:02 +08:00
Fix packet handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user