diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 8886a344c..32a0706dc 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1840,12 +1840,16 @@ GST_neighbours_try_connect (const struct GNUNET_PeerIdentity *target) | |||
1840 | struct NeighbourMapEntry *n; | 1840 | struct NeighbourMapEntry *n; |
1841 | 1841 | ||
1842 | if (NULL == neighbours) | 1842 | if (NULL == neighbours) |
1843 | return; /* during shutdown, do nothing */ | 1843 | { |
1844 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1845 | "Asked to connect to peer `%s' during shutdown\n", | ||
1846 | GNUNET_i2s (target)); | ||
1847 | return; /* during shutdown, do nothing */ | ||
1848 | } | ||
1844 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1849 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1845 | "Asked to connect to peer `%s'\n", | 1850 | "Asked to connect to peer `%s'\n", |
1846 | GNUNET_i2s (target)); | 1851 | GNUNET_i2s (target)); |
1847 | if (0 == | 1852 | if (0 == memcmp (target, &GST_my_identity, sizeof (struct GNUNET_PeerIdentity))) |
1848 | memcmp (target, &GST_my_identity, sizeof (struct GNUNET_PeerIdentity))) | ||
1849 | { | 1853 | { |
1850 | /* refuse to connect to myself */ | 1854 | /* refuse to connect to myself */ |
1851 | /* FIXME: can this happen? Is this not an API violation? */ | 1855 | /* FIXME: can this happen? Is this not an API violation? */ |