Fix state transition thinko 79/101379/7
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 31 May 2022 18:37:29 +0000 (20:37 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 31 May 2022 20:54:12 +0000 (22:54 +0200)
commit5e9f3517718f4475c3026acba0a5afb6f19388fa
tree7b801df5d013201f4631785a7439300169f555b3
parent7ab3450d00b4175d303e2d304dbafbd1175081d4
Fix state transition thinko

The future returned from reconnect strategy may have completed before
we add a listener. Make sure we record the future before adding the
listener.

Also change checkState() to a verify() with a proper identity check
to work with nulls and a proper message.

JIRA: NETCONF-827
Change-Id: Ica152cd1445e797c122e542aa1138232f11c6736
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/NetconfSessionPromise.java