Fix another state-keeping thinko 80/101380/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 31 May 2022 18:54:42 +0000 (20:54 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 31 May 2022 20:54:12 +0000 (22:54 +0200)
We need to update pending before we add a listener, as the future
may have already completed and thus we could observe pending being
either null or point to the bad value.

Also update the corresponding checkState() to use identity comparison
and include a proper message.

JIRA: NETCONF-827
Change-Id: If79d7ce71480bab6b35eec6fab63671f949c6cf9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>

No differences found