mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
onos-6310:- avoid Null pointer in protocol TL1Controller method disconnectDevice
Change-Id: I1e6cd1c7b63747978b1acb95bd56af40538e89bf
This commit is contained in:
parent
be94db97c4
commit
1afdb3fa79
@ -211,9 +211,9 @@ public class DefaultTl1Controller implements Tl1Controller {
|
||||
Channel channel = device.channel();
|
||||
if (channel != null) {
|
||||
channel.close();
|
||||
msgMap.remove(channel);
|
||||
}
|
||||
|
||||
msgMap.remove(channel);
|
||||
device.disconnect();
|
||||
tl1Listeners.forEach(l -> l.deviceDisconnected(deviceId));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user