Skip to content

Commit

Permalink
Working DhtPut test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Feb 26, 2015
1 parent b39a6c0 commit bcfb0b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/frostwire/jlibtorrent/demo/DhtPut.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.frostwire.jlibtorrent.swig.entry;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

/**
* @author gubatron
Expand Down Expand Up @@ -61,7 +62,7 @@ public void alert(Alert<?> alert) {

System.out.println("Waiting to DHT bootstrap");

signal.await();
signal.await(10, TimeUnit.SECONDS);

System.out.println("DHT with peers");
System.out.println("Peers: " + s.getStats().getDHTNodes());
Expand Down

0 comments on commit bcfb0b7

Please sign in to comment.