Give up immediately after a synchronization if we are shutting down the synchronizer

This commit is contained in:
CalDescent 2022-02-02 09:18:46 +00:00
parent 7338f5f985
commit 0430fc8a47

View File

@ -307,6 +307,11 @@ public class Synchronizer extends Thread {
}
}
if (!running) {
// We've stopped
return SynchronizationResult.SHUTTING_DOWN;
}
// Has our chain tip changed?
BlockData newChainTip;