mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fix crash when bot message is empty, increase max packet length.
This commit is contained in:
parent
46ff22f720
commit
ec3a7d8f58
@ -3809,6 +3809,10 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void botChat(ServerMessage message) {
|
public void botChat(ServerMessage message) {
|
||||||
|
if (message == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
message.retain();
|
message.retain();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -6,7 +6,7 @@ import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
|
|||||||
|
|
||||||
public class GameByteFrameDecoder extends LengthFieldBasedFrameDecoder {
|
public class GameByteFrameDecoder extends LengthFieldBasedFrameDecoder {
|
||||||
|
|
||||||
private static final int MAX_PACKET_LENGTH = 8192 * 4;
|
private static final int MAX_PACKET_LENGTH = 8192 * 16;
|
||||||
private static final int LENGTH_FIELD_OFFSET = 0;
|
private static final int LENGTH_FIELD_OFFSET = 0;
|
||||||
private static final int LENGTH_FIELD_LENGTH = 4;
|
private static final int LENGTH_FIELD_LENGTH = 4;
|
||||||
private static final int LENGTH_FIELD_ADJUSTMENT = 0;
|
private static final int LENGTH_FIELD_ADJUSTMENT = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user