- mark operation done in case of failure
authorSree Harsha Totakura <totakura@in.tum.de>
Mon, 7 Jan 2013 16:34:38 +0000 (16:34 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Mon, 7 Jan 2013 16:34:38 +0000 (16:34 +0000)
src/fs/test_fs_test_lib.c
src/topology/test_gnunet_daemon_topology.c

index 011ee1a6a83f5b6b355236884f9baa22a5410d42..70e5977a64220c4014f0049fbcebc48ea6d24942 100644 (file)
@@ -86,6 +86,7 @@ do_publish (void *cls,
            struct GNUNET_TESTBED_Operation *op,
            const char *emsg)
 {
+  GNUNET_TESTBED_operation_done (op);
   if (NULL != emsg)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to connect peers: %s\n", emsg);
@@ -94,7 +95,6 @@ do_publish (void *cls,
     GNUNET_SCHEDULER_shutdown ();
     return;
   }
-  GNUNET_TESTBED_operation_done (op);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Publishing %llu bytes\n",
               (unsigned long long) FILESIZE);
   GNUNET_FS_TEST_publish (the_peers[0], TIMEOUT, 1, GNUNET_NO, FILESIZE, SEED,
index ae35da3813e8d940d7ca27f42aa2de69738ab6aa..99734ca8f07b8ea9978297242e186ea0b733e700 100644 (file)
@@ -43,6 +43,7 @@ notify_connect_complete (void *cls,
                         struct GNUNET_TESTBED_Operation *op,
                         const char *emsg)
 {
+  GNUNET_TESTBED_operation_done (op);
   if (NULL != emsg)
   {
     FPRINTF (stderr, "Failed to connect two peers: %s\n", emsg);
@@ -50,7 +51,6 @@ notify_connect_complete (void *cls,
     ok = 1;
     return;
   }
-  GNUNET_TESTBED_operation_done (op);
   connect_left--;
   if (0 == connect_left)
   {