Skip to content

Commit 8ba0bd9

Browse files
committed
mark sendPacket as synchronized
I don't think there should be async issues but now it's better guaranteed
1 parent bd5b497 commit 8ba0bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/denizenscript/depenizen/bungee/DepenizenConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void run() {
105105

106106
public HashMap<Long, ProxyPingEvent> proxyEventMap = new HashMap<>();
107107

108-
public void sendPacket(PacketOut packet) {
108+
public synchronized void sendPacket(PacketOut packet) {
109109
try {
110110
ByteBuf buf = channel.alloc().buffer();
111111
packet.writeTo(buf);

0 commit comments

Comments
 (0)