aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_exponential_backoff.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-18 12:23:00 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-18 12:23:00 +0000
commit8a6311d5c6d1434e2cc01781d7b30e0788c89fba (patch)
treeabc66f2388824e1ea9dc321399576423f3d6bea9 /src/arm/test_exponential_backoff.c
parenta9b5a58a55dd8c6f4b8dc1cadd7d4639f30bb1fd (diff)
downloadgnunet-8a6311d5c6d1434e2cc01781d7b30e0788c89fba.tar.gz
gnunet-8a6311d5c6d1434e2cc01781d7b30e0788c89fba.zip
fixes
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r--src/arm/test_exponential_backoff.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index 0ff0ebdad..e20ccd53e 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -120,8 +120,10 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
120 } 120 }
121 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES)) 121 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES))
122 { 122 {
123 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, 123#if VERBOSE
124 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
124 "Service shutdown complete.\n"); 125 "Service shutdown complete.\n");
126#endif
125 if (shutdown_ctx->cont != NULL) 127 if (shutdown_ctx->cont != NULL)
126 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_NO); 128 shutdown_ctx->cont(shutdown_ctx->cont_cls, GNUNET_NO);
127 129
@@ -135,8 +137,10 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
135 switch (ntohs(msg->type)) 137 switch (ntohs(msg->type))
136 { 138 {
137 case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK: 139 case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK:
138 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, 140#if VERBOSE
141 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
139 "Received confirmation for service shutdown.\n"); 142 "Received confirmation for service shutdown.\n");
143#endif
140 shutdown_ctx->confirmed = GNUNET_YES; 144 shutdown_ctx->confirmed = GNUNET_YES;
141 GNUNET_CLIENT_receive (shutdown_ctx->sock, 145 GNUNET_CLIENT_receive (shutdown_ctx->sock,
142 &service_shutdown_handler, 146 &service_shutdown_handler,