return distributedRelay.shutdown();
}
});
// open new relay when one failed
distributedRelay.addRelayListener(new RelayListener() {
@Override
public void relayFailed(PeerAddress relayAddress) {
// one failed, add new one
final FutureRelay futureRelay2 = new FutureRelay();
distributedRelay.setupRelays(futureRelay2, manualRelays, maxFail);