diff --git a/src/main/java/org/peergos/HostBuilder.java b/src/main/java/org/peergos/HostBuilder.java index 88f3c0a1..99be4047 100644 --- a/src/main/java/org/peergos/HostBuilder.java +++ b/src/main/java/org/peergos/HostBuilder.java @@ -185,7 +185,7 @@ public static Host build(PrivKey privKey, if (connection.isInitiator()) return; addrs.getAddrs(remotePeer).thenAccept(existing -> { - if (existing.isEmpty()) + if (! existing.isEmpty()) return; StreamPromise stream = connection.muxerSession() .createStream(new IdentifyBinding(new IdentifyProtocol()));