diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-22 15:19:49 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-22 15:19:49 +0000 |
commit | 7c0698d2296e00d9544f48819f24ed4319e3fad8 (patch) | |
tree | 343507da792d950d8d24ed11648e433bcad304a9 /src/core/core_api.c | |
parent | ac5cf07b590f788946d4b05f8e11b2414493f4eb (diff) | |
download | gnunet-7c0698d2296e00d9544f48819f24ed4319e3fad8.tar.gz gnunet-7c0698d2296e00d9544f48819f24ed4319e3fad8.zip |
Testing and core related changes.
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)); |