Count stable connections even in case of connection failure.

This commit is contained in:
akwizgran
2020-06-05 11:10:06 +01:00
parent 9768b048d2
commit 9909d205c7

View File

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