PeerGroup: Log last download peer on shutdown.

This commit is contained in:
Andreas Schildbach
2019-01-31 13:40:43 +01:00
parent 0230a25b23
commit efaae76fa9

View File

@@ -1082,6 +1082,8 @@ public class PeerGroup implements TransactionBroadcaster {
try {
log.info("Stopping ...");
Stopwatch watch = Stopwatch.createStarted();
// The log output this creates can be useful.
setDownloadPeer(null);
// Blocking close of all sockets.
channels.stopAsync();
channels.awaitTerminated();