From 6ea7add56555c038279c89bf363fc3cb90e83a9e Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 5 Dec 2023 16:53:33 +0000 Subject: [PATCH] Fix prev commit --- src/main/java/org/peergos/HostBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()));