diff --git a/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java b/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java index 055584eed..983dcf7fa 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java @@ -15,7 +15,7 @@ public class ChannelWrapper this.ch = ch; } - public void write(Object packet) + public synchronized void write(Object packet) { if ( !closed ) { @@ -23,7 +23,7 @@ public class ChannelWrapper } } - public void close() + public synchronized void close() { if ( !closed ) {