commit | 878c78cca3ba6b86ba077ec65f19cef93cb308d3 | [log] [tgz] |
---|---|---|
author | Victor Silva <victor@waltznetworks.com> | Mon Nov 14 13:32:36 2016 -0300 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Nov 17 17:38:27 2016 +0000 |
tree | 55a0fe5951e2812db654e6f45af2f27a57f1560e | |
parent | ef0f7231468657e23fc1e83508db026dd2577ae9 [diff] |
MulticastRouteManager: remove sink on deactivate Reactivating this app after deactivating it once blows up on the logs because the sink had not been properly removed - we can't add it in that case. Change-Id: I7c4a40f0d5b28d8c0b0d6e17737b958a65ccfd5b
diff --git a/incubator/net/src/main/java/org/onosproject/incubator/net/mcast/impl/MulticastRouteManager.java b/incubator/net/src/main/java/org/onosproject/incubator/net/mcast/impl/MulticastRouteManager.java index ac30dda..bbc8bdb 100644 --- a/incubator/net/src/main/java/org/onosproject/incubator/net/mcast/impl/MulticastRouteManager.java +++ b/incubator/net/src/main/java/org/onosproject/incubator/net/mcast/impl/MulticastRouteManager.java
@@ -63,6 +63,7 @@ @Deactivate public void deactivate() { + eventDispatcher.removeSink(McastEvent.class); log.info("Stopped"); }