mirror of
https://github.com/ayunami2000/ayungee.git
synced 2024-11-10 07:06:05 -08:00
quick fix of bug
This commit is contained in:
parent
a744eb114a
commit
ab7690f366
|
@ -120,7 +120,7 @@ public class WebSocketProxy extends WebSocketServer {
|
|||
int read = selfClient.socketIn.read(data, 0, maxBuffSize);
|
||||
if (read == maxBuffSize) {
|
||||
if (conn.isOpen()) conn.send(data);
|
||||
} else {
|
||||
} else if (read > 0) {
|
||||
byte[] trueData = new byte[read];
|
||||
System.arraycopy(data, 0, trueData, 0, read);
|
||||
if (conn.isOpen()) conn.send(trueData);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user