[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17320 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17320 - gnunet/src/transport |
Date: |
Mon, 10 Oct 2011 13:42:21 +0200 |
Author: wachs
Date: 2011-10-10 13:42:21 +0200 (Mon, 10 Oct 2011)
New Revision: 17320
Modified:
gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
fixed notification order
Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c 2011-10-10
11:39:42 UTC (rev 17319)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c 2011-10-10
11:42:21 UTC (rev 17320)
@@ -737,10 +737,15 @@
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Setting inbound quota of %u for peer
`%s' to \n",
ntohl (bandwidth_in), GNUNET_i2s (target));
#endif
+ GST_neighbours_set_incoming_quota (&n->id, bandwidth_in);
+ /* First tell clients about connected neighbours...*/
+ neighbours_connected++;
+ GNUNET_STATISTICS_update (GST_stats, gettext_noop ("# peers connected"), 1,
+ GNUNET_NO);
+ connect_notify_cb (callback_cls, target, n->ats, n->ats_count);
- GST_neighbours_set_incoming_quota (&n->id, bandwidth_in);
- /* ATS told us outbound quota for this peer, tell all clients */
+ /* ... then send outbound quota for this peer to all clients */
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending outbound quota of %u Bps for
peer `%s' to all clients\n",
ntohl (bandwidth_out), GNUNET_i2s (target));
@@ -753,10 +758,6 @@
msg.peer = (*target);
GST_clients_broadcast ((struct GNUNET_MessageHeader *) &msg, GNUNET_NO);
- neighbours_connected++;
- GNUNET_STATISTICS_update (GST_stats, gettext_noop ("# peers connected"), 1,
- GNUNET_NO);
- connect_notify_cb (callback_cls, target, n->ats, n->ats_count);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17320 - gnunet/src/transport,
gnunet <=