From: David ‘Bombe’ Roden Date: Fri, 10 Jul 2015 12:59:16 +0000 (+0200) Subject: Ignore identifier when consuming unknown messages X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0c86b219616126f1a020e3b6a312156cad7c46ee;p=jFCPlib.git Ignore identifier when consuming unknown messages --- diff --git a/src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java b/src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java index 8bdaf5c..ea5d084 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java @@ -142,10 +142,8 @@ public abstract class FcpReplySequence implements AutoCloseable, FcpListener } private void consumeUnknown(FcpMessage fcpMessage) { - if (Objects.equals(fcpMessage.getField("Identifier"), identifier.get())) { - consumeUnknownMessage(fcpMessage); - notifySyncObject(); - } + consumeUnknownMessage(fcpMessage); + notifySyncObject(); } private void consumeClose(Throwable throwable) {