Keep references to threads and shut them down more properly

This commit is contained in:
Edward Capriolo
2015-01-12 22:41:21 -05:00
parent 5072be6636
commit 6565b03192
4 changed files with 34 additions and 8 deletions

View File

@ -125,8 +125,13 @@ abstract public class PassiveGossipThread implements Runnable {
_keepRunning.set(false);
}
}
shutdown();
}
public void shutdown(){
_server.close();
}
/**
* Abstract method for merging the local and remote list.
* @param gossipManager The GossipManager for retrieving the local members and dead members list.