diff options
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index e9a38271b..16479b2d3 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -1733,8 +1733,12 @@ GNUNET_CORE_peer_request_connect (struct GNUNET_CORE_Handle *h, | |||
1733 | 1733 | ||
1734 | if (NULL != GNUNET_CONTAINER_multihashmap_get (h->peers, | 1734 | if (NULL != GNUNET_CONTAINER_multihashmap_get (h->peers, |
1735 | &peer->hashPubKey)) | 1735 | &peer->hashPubKey)) |
1736 | return NULL; /* Already connected, means callback should have happened already! */ | 1736 | { |
1737 | 1737 | #if DEBUG_CORE | |
1738 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Peers are already connected!\n"); | ||
1739 | #endif | ||
1740 | return NULL; | ||
1741 | } | ||
1738 | 1742 | ||
1739 | cm = GNUNET_malloc (sizeof (struct ControlMessage) + | 1743 | cm = GNUNET_malloc (sizeof (struct ControlMessage) + |
1740 | sizeof (struct ConnectMessage)); | 1744 | sizeof (struct ConnectMessage)); |