aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 6a32c00e..64998fd5 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -49,10 +49,12 @@ int peerTest(int argc, char** argv)
if (!remoteHost.empty())
pn.connect(remoteHost, remotePort);
- while (true)
+ for (int i = 0; ; ++i)
{
usleep(100000);
pn.process();
+ if (!(i % 10))
+ pn.pingAll();
}
return 0;