aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-02 13:08:37 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-02 13:08:37 +0000
commit12305b4f774820c211f2bb5e2cf684504941be71 (patch)
tree07bbac890bbcf646a8b5bb875b0b9c96b2caac36 /src
parentf1ece77b38a7c0c83376547b270df913ca9588b2 (diff)
downloadgnunet-12305b4f774820c211f2bb5e2cf684504941be71.tar.gz
gnunet-12305b4f774820c211f2bb5e2cf684504941be71.zip
making mwachs happy
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index d971e7cf9..070690ae9 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -569,14 +569,16 @@ try_connect_using_address (void *cls, const struct GNUNET_PeerIdentity *target,
569 uint32_t ats_count) 569 uint32_t ats_count)
570{ 570{
571 struct NeighbourMapEntry *n = cls; 571 struct NeighbourMapEntry *n = cls;
572 int was_connected;
572 573
573 n->asc = NULL; 574 n->asc = NULL;
575 was_connected = n->is_connected;
576 n->is_connected = GNUNET_YES;
574 GST_neighbours_switch_to_address (target, plugin_name, plugin_address, 577 GST_neighbours_switch_to_address (target, plugin_name, plugin_address,
575 plugin_address_len, session, ats, 578 plugin_address_len, session, ats,
576 ats_count); 579 ats_count);
577 if (GNUNET_YES == n->is_connected) 580 if (GNUNET_YES == was_connected)
578 return; 581 return;
579 n->is_connected = GNUNET_YES;
580 connect_notify_cb (callback_cls, target, n->ats, n->ats_count); 582 connect_notify_cb (callback_cls, target, n->ats, n->ats_count);
581} 583}
582 584
@@ -698,7 +700,7 @@ GST_neighbours_send (const struct GNUNET_PeerIdentity *target, const void *msg,
698 { 700 {
699 GNUNET_STATISTICS_update (GST_stats, 701 GNUNET_STATISTICS_update (GST_stats,
700 gettext_noop 702 gettext_noop
701 ("# SET QUOTA messages ignored (no such peer)"), 703 ("# messages not sent (no such peer or not connected)"),
702 1, GNUNET_NO); 704 1, GNUNET_NO);
703#if DEBUG_TRANSPORT 705#if DEBUG_TRANSPORT
704 if (n == NULL) 706 if (n == NULL)