diff options
Diffstat (limited to 'src/mesh/mesh_api.c')
-rw-r--r-- | src/mesh/mesh_api.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 68b2e587d..fc92f9bb4 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -181,6 +181,17 @@ core_connect (void *cls, | |||
181 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 181 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) |
182 | { | 182 | { |
183 | struct GNUNET_MESH_Handle *handle = cls; | 183 | struct GNUNET_MESH_Handle *handle = cls; |
184 | |||
185 | /* Send a hello to this peer */ | ||
186 | GNUNET_CORE_notify_transmit_ready(handle->core, | ||
187 | GNUNET_NO, | ||
188 | 42, | ||
189 | GNUNET_TIME_UNIT_SECONDS, | ||
190 | peer, | ||
191 | sizeof(struct GNUNET_MessageHeader) + handle->hello_message_size, | ||
192 | &send_hello_message, | ||
193 | cls); | ||
194 | |||
184 | /* Check for connect-to-self-message, which we ignore */ | 195 | /* Check for connect-to-self-message, which we ignore */ |
185 | if (0 == | 196 | if (0 == |
186 | memcmp (peer, &handle->myself, sizeof (struct GNUNET_PeerIdentity))) | 197 | memcmp (peer, &handle->myself, sizeof (struct GNUNET_PeerIdentity))) |
@@ -220,15 +231,6 @@ core_connect (void *cls, | |||
220 | else | 231 | else |
221 | tunnel = tunnel->next; | 232 | tunnel = tunnel->next; |
222 | } | 233 | } |
223 | GNUNET_CORE_notify_transmit_ready(handle->core, | ||
224 | GNUNET_NO, | ||
225 | 42, | ||
226 | GNUNET_TIME_UNIT_SECONDS, | ||
227 | peer, | ||
228 | sizeof(struct GNUNET_MessageHeader) + handle->hello_message_size, | ||
229 | &send_hello_message, | ||
230 | cls); | ||
231 | |||
232 | } | 234 | } |
233 | 235 | ||
234 | /** | 236 | /** |