From 0c86b219616126f1a020e3b6a312156cad7c46ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 10 Jul 2015 14:59:16 +0200 Subject: [PATCH] Ignore identifier when consuming unknown messages --- src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) { -- 2.7.4