AbstractNetconfSessionNegotiator synchronises access to state in
changeState(); this also needs to be done in ifNegotiatedAlready.
(FindBugs now flags this and fails the build.)
Change-Id: Id2209e1987429f3b754a2c7afc1a7e47dc4135ab
Signed-off-by: Stephen Kitt <skitt@redhat.com>
- protected final boolean ifNegotiatedAlready() {
+ protected final synchronized boolean ifNegotiatedAlready() {
// Indicates whether negotiation already started
return this.state != State.IDLE;
}
// Indicates whether negotiation already started
return this.state != State.IDLE;
}