More null checking here
This commit is contained in:
@ -188,8 +188,12 @@ public abstract class GossipManager extends Thread implements NotificationListen
|
|||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
_gossipServiceRunning.set(false);
|
_gossipServiceRunning.set(false);
|
||||||
_gossipThreadExecutor.shutdown();
|
_gossipThreadExecutor.shutdown();
|
||||||
|
if (passiveGossipThread != null){
|
||||||
passiveGossipThread.shutdown();
|
passiveGossipThread.shutdown();
|
||||||
|
}
|
||||||
|
if (activeGossipThread != null){
|
||||||
activeGossipThread.shutdown();
|
activeGossipThread.shutdown();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
boolean result = _gossipThreadExecutor.awaitTermination(1000, TimeUnit.MILLISECONDS);
|
boolean result = _gossipThreadExecutor.awaitTermination(1000, TimeUnit.MILLISECONDS);
|
||||||
if (!result){
|
if (!result){
|
||||||
|
Reference in New Issue
Block a user