gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14423 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r14423 - gnunet/src/testing
Date: Wed, 16 Feb 2011 15:35:54 +0100

Author: nevans
Date: 2011-02-16 15:35:54 +0100 (Wed, 16 Feb 2011)
New Revision: 14423

Modified:
   gnunet/src/testing/testing.c
Log:
testing code

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2011-02-16 14:32:45 UTC (rev 14422)
+++ gnunet/src/testing/testing.c        2011-02-16 14:35:54 UTC (rev 14423)
@@ -1510,9 +1510,11 @@
         }
     }
 
-  GNUNET_TRANSPORT_disconnect (ctx->d1th);
+  if (ctx->d1th != NULL)
+    GNUNET_TRANSPORT_disconnect (ctx->d1th);
   ctx->d1th = NULL;
-  GNUNET_CORE_disconnect (ctx->d1core);
+  if (ctx->d1core != NULL)
+    GNUNET_CORE_disconnect (ctx->d1core);
   ctx->d1core = NULL;
   GNUNET_free (ctx);
 }
@@ -1669,6 +1671,7 @@
       ctx->distance = 0;        /* FIXME: distance */
       ctx->timeout_task = GNUNET_SCHEDULER_add_now (&notify_connect_result,
                                                     ctx);
+      GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Not sending a connect request; 
already connected!\n");
     }
   else if (peer == NULL) /* Peer not already connected, need to schedule 
connect request! */
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]