fixing bad fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 17:43:13 +0000 (17:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 17:43:13 +0000 (17:43 +0000)
src/arm/arm_api.c
src/arm/gnunet-arm.c

index ec41a7c60c0f73a4fe2b2477187eeb71384dfbd4..6d6cb978fea901d68681fc357dec45bcd1e104ae 100644 (file)
@@ -143,11 +143,6 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
       shutdown_ctx->confirmed = GNUNET_YES;
       GNUNET_CLIENT_receive (shutdown_ctx->sock, &service_shutdown_handler,
                              shutdown_ctx, GNUNET_TIME_UNIT_FOREVER_REL);
-      if (shutdown_ctx->cont != NULL)
-        shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO);
-      GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task);
-      GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
-      GNUNET_free (shutdown_ctx);
       break;
     default:
 #if DEBUG_ARM
index 7e108cb41d8db9315dca4e0f1099bf12f44b3a0a..061bb65d01d528cc1a4570aeee45887dace01185 100644 (file)
@@ -34,7 +34,7 @@
 /**
  * Timeout for stopping services.  Long to give some services a real chance.
  */
-#define STOP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
+#define STOP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15)
 
 /**
  * Timeout for stopping ARM.  Extra-long since ARM needs to stop everyone else.