-fix #3722
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 4 Aug 2015 15:26:55 +0000 (15:26 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 4 Aug 2015 15:26:55 +0000 (15:26 +0000)
src/fs/test_gnunet_service_fs_migration.c

index 69fd4619ab7803083370f4195a287a31c0414fb2..31e971a98b720a5c9a961d221e4d1069dbd98270 100644 (file)
@@ -145,6 +145,9 @@ stop_source_peer (void *cls,
 {
   struct DownloadContext *dc = cls;
 
+  /* Do not interact with testbed when shutting down */
+  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
+    return;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Stopping source peer\n");
   op = GNUNET_TESTBED_peer_stop (NULL, daemons[1], &do_download, dc);