[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17644 - gnunet/src/arm
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17644 - gnunet/src/arm |
Date: |
Thu, 20 Oct 2011 19:36:42 +0200 |
Author: grothoff
Date: 2011-10-20 19:36:42 +0200 (Thu, 20 Oct 2011)
New Revision: 17644
Modified:
gnunet/src/arm/arm_api.c
Log:
do terminate properly
Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c 2011-10-20 17:35:19 UTC (rev 17643)
+++ gnunet/src/arm/arm_api.c 2011-10-20 17:36:42 UTC (rev 17644)
@@ -143,8 +143,13 @@
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_YES);
+ GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task);
+ GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO);
+ GNUNET_free (shutdown_ctx);
break;
- default: /* Fall through */
+ default:
#if DEBUG_ARM
LOG (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown refused!\n");
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17644 - gnunet/src/arm,
gnunet <=