Bug 8405: Add close check to NetconfDevice 20/56720/9
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 05:42:37 +0000 (07:42 +0200)
commit228c46e1e7e00444ea60bbb98c86cdcce607b78e
treefba301867a12c2b6f1964e0307712137e05710b2
parent09bf6e08cf2c21372843207a358d8c2cc3b230aa
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