BUG-3771: Use sync on FutureChannels intead of await 39/29539/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Wed, 11 Nov 2015 09:46:12 +0000 (10:46 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 12 Nov 2015 00:02:50 +0000 (00:02 +0000)
commit8133f9ffe21c405688228d7f33de8ec32f690a9d
treec8ed63e4f4834be2678b23d3efdcf7f9289e606c
parenta12ceebda32bf246f09511832a92825a46dfa3fe
BUG-3771: Use sync on FutureChannels intead of await

"Await" waits until future has finished and throw execution
if thread was interrupted."Sync"" instead waits for this
future until it is done, and re throws the cause of
the failure if this future failed.
When closing the module, first we ensure that channel
has been closed and if it didn't fail we proceed
with next closures.

Change-Id: I1240d6fdb6986b8c30251206d8027db7b1a987fa
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/PCEPTopologyProvider.java