aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r--src/transport/gnunet-transport.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 109622567..24be066bc 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -1599,6 +1599,9 @@ plugin_monitoring_cb (void *cls,
1599 const char *state; 1599 const char *state;
1600 struct PluginMonitorAddress *addr; 1600 struct PluginMonitorAddress *addr;
1601 1601
1602 if ( (NULL == info) &&
1603 (NULL == session) )
1604 return; /* in sync with transport service */
1602 if ( (NULL != cpid) && 1605 if ( (NULL != cpid) &&
1603 (0 != memcmp (&info->address->peer, 1606 (0 != memcmp (&info->address->peer,
1604 cpid, 1607 cpid,
@@ -1740,6 +1743,14 @@ process_peer_monitoring_cb (void *cls,
1740} 1743}
1741 1744
1742 1745
1746/**
1747 * Function called with our result of trying to connect to the
1748 * transport service. Will retry 10 times, and if we still
1749 * fail to connect terminate with an error message.
1750 *
1751 * @param cls NULL
1752 * @param result #GNUNET_OK if we connected to the service
1753 */
1743static void 1754static void
1744try_connect_cb (void *cls, 1755try_connect_cb (void *cls,
1745 const int result) 1756 const int result)
@@ -1753,8 +1764,12 @@ try_connect_cb (void *cls,
1753 } 1764 }
1754 retries++; 1765 retries++;
1755 if (retries < 10) 1766 if (retries < 10)
1756 tc_handle = GNUNET_TRANSPORT_try_connect (handle, &pid, try_connect_cb, 1767 {
1757 NULL); 1768 tc_handle = GNUNET_TRANSPORT_try_connect (handle,
1769 &pid,
1770 &try_connect_cb,
1771 NULL);
1772 }
1758 else 1773 else
1759 { 1774 {
1760 FPRINTF (stderr, 1775 FPRINTF (stderr,