- pausing, unpausing
[oweals/gnunet.git] / src / transport / transport_api.c
index c905a1549296e00ac94b2b2ef2f9f7125ef328c2..2d4890db9aa3d8ad5103ba6afafacc2d44e3b70b 100644 (file)
@@ -988,7 +988,12 @@ GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
                               const struct GNUNET_PeerIdentity *target)
 {
   struct GNUNET_PeerIdentity *pid;
-  GNUNET_assert (NULL != handle->client);
+  if (NULL == handle->client)
+  {
+      /* FIXME: handle->client can be NULL when transport api is reconnecting */
+      GNUNET_break (0);
+      return;
+  }
 
   pid = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity));
   *pid = *target;