commit | bfc6b72eb073630990135a16a560ab2f325f622f | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Sat Nov 29 12:53:48 2014 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Sat Nov 29 21:02:24 2014 +0000 |
tree | 150066bf4b02778f2eee236fe45359114c91995a | |
parent | 3ea690b7779062f1897729572a696a0713712169 [diff] |
small fix to unregister devicelistener in HostLocationProvider to avoid an NPE Change-Id: Ib14a484713f07d6ce5275fe10404aa9714467945
diff --git a/providers/host/src/main/java/org/onlab/onos/provider/host/impl/HostLocationProvider.java b/providers/host/src/main/java/org/onlab/onos/provider/host/impl/HostLocationProvider.java index 8821d76..296d300 100644 --- a/providers/host/src/main/java/org/onlab/onos/provider/host/impl/HostLocationProvider.java +++ b/providers/host/src/main/java/org/onlab/onos/provider/host/impl/HostLocationProvider.java
@@ -109,6 +109,7 @@ public void deactivate() { providerRegistry.unregister(this); pktService.removeProcessor(processor); + deviceService.removeListener(deviceListener); providerService = null; log.info("Stopped"); }