Index: /sample/pingpong/PingPong.cpp
===================================================================
--- /sample/pingpong/PingPong.cpp	(revision 12061)
+++ /sample/pingpong/PingPong.cpp	(revision 12062)
@@ -98,18 +98,12 @@
 
 // timer event
-void PingPong::eventFunction() {
-
-    if ( node.getNeighborNodes().size() == 0)
-    {
-        logging_info( "[PINGPONG]\t +++ no neighbors +++" );
-        return;
-    }
-    
-	// we ping all nodes that are known in the overlay structure
+void PingPong::eventFunction()
+{
+	// We ping all nodes that are known in the overlay structure
 	// this can be all nodes (OneHop) overlay or just some neighbors
 	// in case of a Chord or Kademlia structure
 	// NOTE: Currently ariba only supports the Chord overlay.
 
-	// in this sample we use auto-links: we just send out our message
+	// In this sample we use auto-links: we just send out our message
 	// to the node and the link is established automatically. for more
 	// control we would use the node->establishLink function to create
@@ -123,8 +117,17 @@
 	//   reboost::shared_buffer_t. These buffers hold plain data, so you have to 
 	//   serialize the data "on your own".
-	// We reccomend third-party serialization libraries like:
+	// We recommend third-party serialization libraries like:
 	//   - Protocol Buffers (http://en.wikipedia.org/wiki/Protocol_Buffers)
 	//   - MessagePack      (http://en.wikipedia.org/wiki/MessagePack)
 
+	
+	// don't do anything if we have no neighbors
+	if ( node.getNeighborNodes().size() == 0)
+    {
+        logging_info( "[PINGPONG]\t +++ no neighbors +++" );
+        return;
+    }
+    
+    
 	pingId++;
     logging_info( endl << "|||||||||| >>>>>>>>>>" << endl
