aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r--src/arm/arm_api.c7
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