From b3dd89dbe5555118bf748dd3b8738faff3a7a23d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 26 Jul 2018 02:50:43 +0100 Subject: [PATCH] ignore incoming connection events --- core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy index ea76d72e..27b27e97 100644 --- a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy +++ b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy @@ -55,6 +55,8 @@ class HostCache extends Service { } void onConnectionEvent(ConnectionEvent e) { + if (e.incoming) + return Destination dest = e.endpoint.destination Host host = hosts.get(dest) if (host == null) {