correctly mark changed packet as processed (#1639)

This commit is contained in:
Pasqual Koschmieder 2022-06-13 16:01:27 +02:00 committed by GitHub
parent 5e8f044a18
commit 59ca841ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -540,11 +540,11 @@ public class NettyChannelInjector implements Injector {
// if the marker is null we can just schedule the action as we don't need to do anything after the packet was sent
NetworkMarker eventMarker = NetworkMarker.getNetworkMarker(event);
if (eventMarker == null) {
return this.markProcessed(packet, action, markSeen);
return this.markProcessed(interceptedPacket, action, markSeen);
}
// we need to wrap the action to call the listeners set in the marker
return this.markProcessed(packet, this.proxyAction(action, event, eventMarker), markSeen);
return this.markProcessed(interceptedPacket, this.proxyAction(action, event, eventMarker), markSeen);
}
// return null if the event was cancelled to schedule a no-op event