Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-26 00:00:55 +01:00
Wrap plugin message copies in unreleasable copies.
Trying to track down a very weird issue that barely makes sense to me.
Dieser Commit ist enthalten in:
Ursprung
89e1a07448
Commit
8a3b6403da
@ -146,7 +146,7 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
.thenAcceptAsync(pme -> {
|
.thenAcceptAsync(pme -> {
|
||||||
if (pme.getResult().isAllowed() && !playerConnection.isClosed()) {
|
if (pme.getResult().isAllowed() && !playerConnection.isClosed()) {
|
||||||
PluginMessage copied = new PluginMessage(packet.getChannel(),
|
PluginMessage copied = new PluginMessage(packet.getChannel(),
|
||||||
Unpooled.wrappedBuffer(copy));
|
Unpooled.unreleasableBuffer(Unpooled.wrappedBuffer(copy)));
|
||||||
playerConnection.write(copied);
|
playerConnection.write(copied);
|
||||||
}
|
}
|
||||||
}, playerConnection.eventLoop())
|
}, playerConnection.eventLoop())
|
||||||
|
@ -230,7 +230,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
server.getEventManager().fire(event).thenAcceptAsync(pme -> {
|
server.getEventManager().fire(event).thenAcceptAsync(pme -> {
|
||||||
if (pme.getResult().isAllowed()) {
|
if (pme.getResult().isAllowed()) {
|
||||||
PluginMessage message = new PluginMessage(packet.getChannel(),
|
PluginMessage message = new PluginMessage(packet.getChannel(),
|
||||||
Unpooled.wrappedBuffer(copy));
|
Unpooled.unreleasableBuffer(Unpooled.wrappedBuffer(copy)));
|
||||||
backendConn.write(message);
|
backendConn.write(message);
|
||||||
}
|
}
|
||||||
}, backendConn.eventLoop())
|
}, backendConn.eventLoop())
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren