From 9909d205c7cbae7772e760f7e274696b1dab94ac Mon Sep 17 00:00:00 2001 From: akwizgran Date: Fri, 5 Jun 2020 11:10:06 +0100 Subject: [PATCH] Count stable connections even in case of connection failure. --- .../plugin/bluetooth/BluetoothConnectionLimiterImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothConnectionLimiterImpl.java b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothConnectionLimiterImpl.java index d7639bb15..5d268eb3e 100644 --- a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothConnectionLimiterImpl.java +++ b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothConnectionLimiterImpl.java @@ -98,7 +98,7 @@ class BluetoothConnectionLimiterImpl implements BluetoothConnectionLimiter { synchronized (lock) { long now = clock.currentTimeMillis(); if (exception) LOG.info("Connection failed"); - else countStableConnections(now); + countStableConnections(now); connections.remove(conn); timeOfLastChange = now; if (LOG.isLoggable(INFO)) {