ignore incoming connection events

pull/4/head
Zlatin Balevsky 2018-07-26 02:50:43 +01:00
parent 7ba5bf61c5
commit b3dd89dbe5
1 changed files with 2 additions and 0 deletions

View File

@ -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) {