diff options
Diffstat (limited to 'src/core/test_core_api.c')
-rw-r--r-- | src/core/test_core_api.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 814ebe889..cec66f020 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -123,6 +123,10 @@ connect_notify (void *cls, | |||
123 | { | 123 | { |
124 | struct PeerContext *pc = cls; | 124 | struct PeerContext *pc = cls; |
125 | 125 | ||
126 | if (0 == memcmp (&pc->id, | ||
127 | peer, | ||
128 | sizeof (struct GNUNET_PeerIdentity))) | ||
129 | return; | ||
126 | GNUNET_assert (pc->connect_status == 0); | 130 | GNUNET_assert (pc->connect_status == 0); |
127 | pc->connect_status = 1; | 131 | pc->connect_status = 1; |
128 | if (pc == &p1) | 132 | if (pc == &p1) |
@@ -154,6 +158,10 @@ disconnect_notify (void *cls, | |||
154 | { | 158 | { |
155 | struct PeerContext *pc = cls; | 159 | struct PeerContext *pc = cls; |
156 | 160 | ||
161 | if (0 == memcmp (&pc->id, | ||
162 | peer, | ||
163 | sizeof (struct GNUNET_PeerIdentity))) | ||
164 | return; | ||
157 | pc->connect_status = 0; | 165 | pc->connect_status = 0; |
158 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 166 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
159 | "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer)); | 167 | "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer)); |