commit | 5f1c8146ad689157c0b615bb0f825d80aa88e386 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@opennetworking.org> | Tue Jul 24 17:31:59 2018 -0700 |
committer | Jonathan Hart <jono@opennetworking.org> | Tue Jul 24 17:31:59 2018 -0700 |
tree | 4a2e5d9b5b4f0caf31dc8add5f0c85e338654c70 | |
parent | 3f57926a5a195ae469015f8f95d513f8927ee8e9 [diff] |
Remove event sink when app is deactivated. Change-Id: I4c0b2b39041a8db8a2bceba8e5e615edec90ed88
diff --git a/app/src/main/java/org/opencord/olt/impl/Olt.java b/app/src/main/java/org/opencord/olt/impl/Olt.java index 33206e9..9717bad 100644 --- a/app/src/main/java/org/opencord/olt/impl/Olt.java +++ b/app/src/main/java/org/opencord/olt/impl/Olt.java
@@ -205,6 +205,7 @@ deviceService.removeListener(deviceListener); networkConfig.removeListener(configListener); networkConfig.unregisterConfigFactory(configFactory); + eventDispatcher.removeSink(AccessDeviceEvent.class); log.info("Stopped"); }