mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Check server socket is bound.
This commit is contained in:
@@ -349,7 +349,7 @@ class LanTcpPlugin extends TcpPlugin {
|
||||
tryToClose(ss, LOG, WARNING);
|
||||
}
|
||||
}
|
||||
if (ss == null) {
|
||||
if (ss == null || !ss.isBound()) {
|
||||
LOG.info("Could not bind server socket for key agreement");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ abstract class TcpPlugin implements DuplexPlugin, EventListener {
|
||||
tryToClose(ss, LOG, WARNING);
|
||||
}
|
||||
}
|
||||
if (ss == null) {
|
||||
if (ss == null || !ss.isBound()) {
|
||||
LOG.info("Could not bind server socket");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user