Jonathan Hart

PartitionManager: Shutdown background thread during deactivate

Fixes ONOS-1168.

Change-Id: I7fc4fa3787b552d958e148b96e6a6a9c51291ddb
...@@ -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 }
......