if (future.isSuccess()) {
final ChannelCreator cc = fcc.channelCreator();
final PeerConnection peerConnection = new PeerConnection(destination, cc, heartBeatMillis);
futureDone.done(peerConnection);
} else {
futureDone.failed(future);
}
}
});
return futureDone;
}