PartitionManager: Shutdown background thread during deactivate
Fixes ONOS-1168. Change-Id: I7fc4fa3787b552d958e148b96e6a6a9c51291ddb
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -86,6 +86,8 @@ public class PartitionManager implements PartitionService { | ... | @@ -86,6 +86,8 @@ public class PartitionManager implements PartitionService { |
86 | 86 | ||
87 | @Deactivate | 87 | @Deactivate |
88 | public void deactivate() { | 88 | public void deactivate() { |
89 | + executor.shutdownNow(); | ||
90 | + | ||
89 | leadershipService.removeListener(leaderListener); | 91 | leadershipService.removeListener(leaderListener); |
90 | clusterService.removeListener(clusterListener); | 92 | clusterService.removeListener(clusterListener); |
91 | } | 93 | } | ... | ... |
-
Please register or login to post a comment