Bug 8405: Add close check to NetconfDevice 62/56762/2
authorAndrej Mak <andrej.mak@pantheon.tech>
Tue, 9 May 2017 11:17:48 +0000 (13:17 +0200)
committerAndrej Mak <andrej.mak@pantheon.tech>
Wed, 10 May 2017 11:33:23 +0000 (13:33 +0200)
commitb0c1740dbf07ed82e50b9ad2bef515f76a018050
tree63631f03c5751b228c683abb2b3bc397a37e8597
parent285079f8492f35b980d1d11745e02370229231a7
Bug 8405: Add close check to NetconfDevice

Since schema resolution runs in its own thread, it is possible,
that handleSalInitializationSuccess is called when
NetconfDeviceCommunicator was closed meanwhile. Add check to
prevent this.

Change-Id: If93d32b26f0b98c4c0d47fdd65fdb5104db20bc5
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java
netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDeviceTest.java