commit | a85c6941dccfd185d855cd9d0b3e23cb33b34b61 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan.jampani@gmail.com> | Mon Nov 09 14:41:48 2015 -0800 |
committer | Madan Jampani <madan.jampani@gmail.com> | Mon Nov 09 14:41:48 2015 -0800 |
tree | 4c77bbae923e4559ea9832ee257cf37b4f34629d | |
parent | 93a74b301f3bab6f1e2b872c064888cf16f06ab9 [diff] |
Fix eventDispatcher cleanup in ResourceManager Change-Id: I37c82c7dab75def607268e36f2f98e04d41581d9
diff --git a/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceManager.java b/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceManager.java index db3f655..77a32f4 100644 --- a/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceManager.java +++ b/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceManager.java
@@ -67,7 +67,7 @@ @Deactivate public void deactivate() { store.unsetDelegate(delegate); - eventDispatcher.addSink(ResourceEvent.class, listenerRegistry); + eventDispatcher.removeSink(ResourceEvent.class); } @Override