core related fix
authorNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 16:47:56 +0000 (16:47 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 16:47:56 +0000 (16:47 +0000)
src/topology/gnunet-daemon-topology.c

index ef6a81882e654b4205421ab0e6ecf5334ed81134..efe22f1abd13a0e84ec2834edeb063eeb45706ad 100644 (file)
@@ -704,6 +704,9 @@ connect_notify (void *cls,
              "Core told us that we are connecting to `%s'\n",
              GNUNET_i2s (peer));
 #endif
+  if (0 == memcmp(&my_identity, peer, sizeof(struct GNUNET_PeerIdentity)))
+    return;
+
   connection_count++;
   GNUNET_STATISTICS_set (stats,
                         gettext_noop ("# peers connected"),