Ignore identifier when consuming unknown messages
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 12:59:16 +0000 (14:59 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 12:59:16 +0000 (14:59 +0200)
src/main/java/net/pterodactylus/fcp/quelaton/FcpReplySequence.java

index 8bdaf5c..ea5d084 100644 (file)
@@ -142,10 +142,8 @@ public abstract class FcpReplySequence<R> 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) {