Fix UI around receiving multiple returned shards

This commit is contained in:
ameba23
2021-04-19 10:07:06 +02:00
parent ad3c9e101c
commit bdbc377c8f
3 changed files with 18 additions and 14 deletions

View File

@@ -62,6 +62,13 @@ public class SecretOwnerTaskImpl extends ReturnShardTaskImpl
LOG.info("InetAddress is " + inetAddress);
socketAddress = new InetSocketAddress(inetAddress, PORT);
// If we have a socket already open, close it and start fresh
if (serverSocket != null) {
try {
serverSocket.close();
} catch (IOException ignored) {}
}
// Start listening on socketAddress
try {
LOG.info("Binding socket");