commit | 2c39deac5ae8ee150c8ed8d479470e3c7f31f7fc | [log] [tgz] |
---|---|---|
author | pierventre <pier@opennetworking.org> | Mon Oct 25 12:54:48 2021 +0200 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Tue Oct 26 18:41:34 2021 +0000 |
tree | eb70392e6ca019166c2499f4f8331c893ba42ef0 | |
parent | a3fa26c1f7d0fc7245f29a93ea4d9e2fdf2bdc88 [diff] |
[SDFAB-713] Ensure TrafficMonitor is properly shutdown This fixes also a potential leak of memory and thread Change-Id: I266a37365cef3776463a1aca2c1e2717507b4f30
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/topo/Topo2TrafficMessageHandler.java b/web/gui/src/main/java/org/onosproject/ui/impl/topo/Topo2TrafficMessageHandler.java index a6e0e9d..9c84563 100644 --- a/web/gui/src/main/java/org/onosproject/ui/impl/topo/Topo2TrafficMessageHandler.java +++ b/web/gui/src/main/java/org/onosproject/ui/impl/topo/Topo2TrafficMessageHandler.java
@@ -98,6 +98,12 @@ } @Override + public void destroy() { + super.destroy(); + traffic2.stopMonitoring(); + } + + @Override protected Collection<RequestHandler> createRequestHandlers() { return ImmutableSet.of( new Topo2AllTraffic(),