mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
add timeout to client
This commit is contained in:
@@ -54,7 +54,7 @@ public class CustodianTaskImpl implements CustodianTask {
|
||||
|
||||
Socket s = new Socket();
|
||||
try {
|
||||
s.connect(remoteSocketAddress);
|
||||
s.connect(remoteSocketAddress, 120 * 1000);
|
||||
} catch (IOException e) {
|
||||
observer.onStateChanged(new CustodianTask.State.Failure(State.Failure.Reason.QR_CODE_INVALID));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user