BUG: jira NETCONF-493 ReconnectPromise throws IllegalStateException continuously 75/66775/3
author李国胜10121395 <li.guosheng6@zte.com.cn>
Wed, 27 Dec 2017 11:50:04 +0000 (19:50 +0800)
committerJakubToth <jakub.toth@pantheon.tech>
Mon, 8 Jan 2018 16:53:41 +0000 (16:53 +0000)
commit658ab1df8e32b59f7c93204fdf73ae540e7b52d5
tree6048346f5bc42c342a843697f1116d167d19f4d1
parent591b5a2885f28e274232c33b75bf62d1bd45ceb8
BUG: jira NETCONF-493 ReconnectPromise throws IllegalStateException continuously

ReconnectPromise will execute method setFailure() more than once
if reconnecting to a netconf device failed more than once, and the
setFailure() method will start throwing IllegalStateException at
the second time invocation, so there should add limitation to the
call of setFailure() to avoid IllegalStateException.

Change-Id: I2d6802e6ac643215192527319d565da36a16caf5
Signed-off-by: Li guosheng <li.guosheng6@zte.com.cn>
protocol-framework/src/main/java/org/opendaylight/protocol/framework/ReconnectPromise.java