diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-20 17:36:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-20 17:36:42 +0000 |
commit | 2e81faa7f1cda0c7532dfaca3af257750954d0cb (patch) | |
tree | 4f9a9e3401f86cce24823bac44182d47b76145d3 /src | |
parent | 3df90c73c968bc0efd3027aa0e1811ef7902fe2a (diff) | |
download | gnunet-2e81faa7f1cda0c7532dfaca3af257750954d0cb.tar.gz gnunet-2e81faa7f1cda0c7532dfaca3af257750954d0cb.zip |
do terminate properly
Diffstat (limited to 'src')
-rw-r--r-- | src/arm/arm_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index f61eea6fd..fed002708 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -143,8 +143,13 @@ 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_YES); | ||
148 | GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task); | ||
149 | GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); | ||
150 | GNUNET_free (shutdown_ctx); | ||
146 | break; | 151 | break; |
147 | default: /* Fall through */ | 152 | default: |
148 | #if DEBUG_ARM | 153 | #if DEBUG_ARM |
149 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown refused!\n"); | 154 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown refused!\n"); |
150 | #endif | 155 | #endif |