diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-20 17:43:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-20 17:43:13 +0000 |
commit | e15048219fadfb1f05c3c7771f256c01cef057f0 (patch) | |
tree | eeb8e724646ff3ec92322131a1dfea028d3ddf98 /src/arm | |
parent | 0b5e7f738b22125ce5f009d2544ae3f7475f8df5 (diff) | |
download | gnunet-e15048219fadfb1f05c3c7771f256c01cef057f0.tar.gz gnunet-e15048219fadfb1f05c3c7771f256c01cef057f0.zip |
fixing bad fix
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/arm_api.c | 5 | ||||
-rw-r--r-- | src/arm/gnunet-arm.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index ec41a7c60..6d6cb978f 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -143,11 +143,6 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
143 | shutdown_ctx->confirmed = GNUNET_YES; | 143 | shutdown_ctx->confirmed = GNUNET_YES; |
144 | GNUNET_CLIENT_receive (shutdown_ctx->sock, &service_shutdown_handler, | 144 | GNUNET_CLIENT_receive (shutdown_ctx->sock, &service_shutdown_handler, |
145 | shutdown_ctx, GNUNET_TIME_UNIT_FOREVER_REL); | 145 | shutdown_ctx, GNUNET_TIME_UNIT_FOREVER_REL); |
146 | if (shutdown_ctx->cont != NULL) | ||
147 | shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); | ||
148 | GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task); | ||
149 | GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); | ||
150 | GNUNET_free (shutdown_ctx); | ||
151 | break; | 146 | break; |
152 | default: | 147 | default: |
153 | #if DEBUG_ARM | 148 | #if DEBUG_ARM |
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c index 7e108cb41..061bb65d0 100644 --- a/src/arm/gnunet-arm.c +++ b/src/arm/gnunet-arm.c | |||
@@ -34,7 +34,7 @@ | |||
34 | /** | 34 | /** |
35 | * Timeout for stopping services. Long to give some services a real chance. | 35 | * Timeout for stopping services. Long to give some services a real chance. |
36 | */ | 36 | */ |
37 | #define STOP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) | 37 | #define STOP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Timeout for stopping ARM. Extra-long since ARM needs to stop everyone else. | 40 | * Timeout for stopping ARM. Extra-long since ARM needs to stop everyone else. |