mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
Count stable connections even in case of connection failure.
This commit is contained in:
@@ -98,7 +98,7 @@ class BluetoothConnectionLimiterImpl implements BluetoothConnectionLimiter {
|
|||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
long now = clock.currentTimeMillis();
|
long now = clock.currentTimeMillis();
|
||||||
if (exception) LOG.info("Connection failed");
|
if (exception) LOG.info("Connection failed");
|
||||||
else countStableConnections(now);
|
countStableConnections(now);
|
||||||
connections.remove(conn);
|
connections.remove(conn);
|
||||||
timeOfLastChange = now;
|
timeOfLastChange = now;
|
||||||
if (LOG.isLoggable(INFO)) {
|
if (LOG.isLoggable(INFO)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user