-fixing connection problem in WLAN. Someone should explain to me why the other plugin...
authorChristian Grothoff <christian@grothoff.org>
Tue, 8 May 2012 19:58:54 +0000 (19:58 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 8 May 2012 19:58:54 +0000 (19:58 +0000)
src/transport/gnunet-service-transport_neighbours.c

index b0da708c75b80e7c090aa22643334f5d76286198..cb08e68b2c9cdaa4d6de6cce162fbeeb552cf778 100644 (file)
@@ -1631,7 +1631,11 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
     cc = GNUNET_malloc (sizeof (struct ContinutionContext));
     cc->session = n->session;
     cc->address = GNUNET_HELLO_address_copy (address);
-
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Sending CONNECT message to %s\n",
+               GNUNET_i2s (&n->id));
+    if (n->state != S_CONNECT_RECV)
+      change_state (n, S_CONNECT_RECV);
     ret = send_with_session (n,
       (const char *) &connect_msg, msg_len,
       UINT32_MAX, GNUNET_TIME_UNIT_FOREVER_REL,