mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 19:37:42 +00:00
Packets not sending - NOT a client issue
This commit is contained in:
@@ -118,6 +118,7 @@ public class WebSocketProxy extends SimpleChannelInboundHandler<ByteBuf> {
|
||||
|
||||
public void sendPacket(ByteBuffer arg1) {
|
||||
if(tcpChannel != null && tcpChannel.isOpen()) {
|
||||
System.out.println("[WebsocketProxy] - sending packet");
|
||||
tcpChannel.write(Unpooled.wrappedBuffer(arg1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ public class ChannelWrapper {
|
||||
public synchronized void write(final Object packet) {
|
||||
if (!this.closed) {
|
||||
this.ch.write(packet);
|
||||
ch.unsafe().flushNow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user