mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Remove unused parameter.
This commit is contained in:
@@ -50,7 +50,7 @@ class AndroidBluetoothTransportConnection
|
|||||||
try {
|
try {
|
||||||
socket.close();
|
socket.close();
|
||||||
} finally {
|
} finally {
|
||||||
connectionLimiter.connectionClosed(this, exception);
|
connectionLimiter.connectionClosed(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,10 +36,8 @@ interface BluetoothConnectionLimiter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Informs the limiter that the given connection has been closed.
|
* Informs the limiter that the given connection has been closed.
|
||||||
*
|
|
||||||
* @param exception True if the connection was closed due to an exception.
|
|
||||||
*/
|
*/
|
||||||
void connectionClosed(DuplexTransportConnection conn, boolean exception);
|
void connectionClosed(DuplexTransportConnection conn);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Informs the limiter that all connections have been closed.
|
* Informs the limiter that all connections have been closed.
|
||||||
|
|||||||
@@ -90,10 +90,8 @@ class BluetoothConnectionLimiterImpl implements BluetoothConnectionLimiter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connectionClosed(DuplexTransportConnection conn,
|
public void connectionClosed(DuplexTransportConnection conn) {
|
||||||
boolean exception) {
|
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
if (exception) LOG.info("Connection failed");
|
|
||||||
countStableConnections(clock.currentTimeMillis());
|
countStableConnections(clock.currentTimeMillis());
|
||||||
Iterator<ConnectionRecord> it = connections.iterator();
|
Iterator<ConnectionRecord> it = connections.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class JavaBluetoothTransportConnection
|
|||||||
try {
|
try {
|
||||||
stream.close();
|
stream.close();
|
||||||
} finally {
|
} finally {
|
||||||
connectionLimiter.connectionClosed(this, exception);
|
connectionLimiter.connectionClosed(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user