From eb490f716860696959cbdc956303c937022096c2 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 4 Apr 2012 17:38:05 +0200 Subject: [PATCH] Stop the main thread as the peer group thread is now daemonized. --- .../src/main/java/com/google/bitcoin/examples/PingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/java/com/google/bitcoin/examples/PingService.java b/examples/src/main/java/com/google/bitcoin/examples/PingService.java index 2d4cbded2..eea45eeb9 100644 --- a/examples/src/main/java/com/google/bitcoin/examples/PingService.java +++ b/examples/src/main/java/com/google/bitcoin/examples/PingService.java @@ -180,7 +180,7 @@ public class PingService { peerGroup.downloadBlockChain(); System.out.println("Send coins to: " + key.toAddress(params).toString()); System.out.println("Waiting for coins to arrive. Press Ctrl-C to quit."); - // The PeerGroup thread keeps us alive until something kills the process. + while (true) Thread.sleep(Long.MAX_VALUE); } private void bounceCoins(Transaction tx) {