mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-23 13:21:21 +02:00
deactivate NettyMessagingService
Change-Id: I59a437908570c9acc2776c2b0deedb869cf953e2
This commit is contained in:
parent
d26354db11
commit
6c6fb9c65d
@ -85,7 +85,6 @@ public class ClusterCommunicationManager
|
||||
try {
|
||||
netty.activate();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
log.error("NettyMessagingService#activate", e);
|
||||
}
|
||||
messagingService = netty;
|
||||
@ -95,6 +94,12 @@ public class ClusterCommunicationManager
|
||||
@Deactivate
|
||||
public void deactivate() {
|
||||
// TODO: cleanup messageingService if needed.
|
||||
// FIXME: workaround until it becomes a service.
|
||||
try {
|
||||
((NettyMessagingService) messagingService).deactivate();
|
||||
} catch (Exception e) {
|
||||
log.error("NettyMessagingService#deactivate", e);
|
||||
}
|
||||
log.info("Stopped");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user