Skip to content

Commit

Permalink
Use scheduleSend to route sending to netty thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Jun 15, 2022
1 parent f3c616b commit 489ed56
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -166,7 +166,7 @@ public PacketWrapper createPacket(final @NotNull V viewer) {
public void sendPacket(final @NotNull PacketWrapper packet) {
if (packet.user() == null) return;
try {
packet.send(this.protocolClass);
packet.scheduleSend(this.protocolClass);
} catch (final Throwable error) {
logError(error, "Failed to send ViaVersion packet: %s %s", packet.user(), packet);
}
Expand Down

0 comments on commit 489ed56

Please sign in to comment.