aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_exponential_backoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r--src/arm/test_exponential_backoff.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index edd5cbf83..15756657f 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -121,7 +121,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
121 if (shutdown_ctx->cont != NULL) 121 if (shutdown_ctx->cont != NULL)
122 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR); 122 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR);
123 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task); 123 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task);
124 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 124 GNUNET_CLIENT_disconnect (shutdown_ctx->sock);
125 GNUNET_free (shutdown_ctx); 125 GNUNET_free (shutdown_ctx);
126 } 126 }
127 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES)) 127 else if ((msg == NULL) && (shutdown_ctx->confirmed == GNUNET_YES))
@@ -133,7 +133,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
133 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); 133 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO);
134 134
135 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task); 135 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task);
136 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 136 GNUNET_CLIENT_disconnect (shutdown_ctx->sock);
137 GNUNET_free (shutdown_ctx); 137 GNUNET_free (shutdown_ctx);
138 } 138 }
139 else 139 else
@@ -159,7 +159,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg)
159 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_YES); 159 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_YES);
160 160
161 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task); 161 GNUNET_SCHEDULER_cancel (shutdown_ctx->cancel_task);
162 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 162 GNUNET_CLIENT_disconnect (shutdown_ctx->sock);
163 GNUNET_free (shutdown_ctx); 163 GNUNET_free (shutdown_ctx);
164 break; 164 break;
165 } 165 }
@@ -180,7 +180,7 @@ service_shutdown_cancel (void *cls,
180 180
181 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "service_shutdown_cancel called!\n"); 181 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "service_shutdown_cancel called!\n");
182 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR); 182 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR);
183 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 183 GNUNET_CLIENT_disconnect (shutdown_ctx->sock);
184 GNUNET_free (shutdown_ctx); 184 GNUNET_free (shutdown_ctx);
185} 185}
186 186
@@ -205,7 +205,7 @@ write_shutdown (void *cls, size_t size, void *buf)
205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
206 _("Failed to transmit shutdown request to client.\n")); 206 _("Failed to transmit shutdown request to client.\n"));
207 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR); 207 shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_SYSERR);
208 GNUNET_CLIENT_disconnect (shutdown_ctx->sock, GNUNET_NO); 208 GNUNET_CLIENT_disconnect (shutdown_ctx->sock);
209 GNUNET_free (shutdown_ctx); 209 GNUNET_free (shutdown_ctx);
210 return 0; /* client disconnected */ 210 return 0; /* client disconnected */
211 } 211 }
@@ -358,7 +358,7 @@ kill_task (void *cbData, const struct GNUNET_SCHEDULER_TaskContext *tc)
358 GNUNET_assert (doNothingConnection != NULL); 358 GNUNET_assert (doNothingConnection != NULL);
359 if (trialCount == 12) 359 if (trialCount == 12)
360 { 360 {
361 GNUNET_CLIENT_disconnect (doNothingConnection, GNUNET_NO); 361 GNUNET_CLIENT_disconnect (doNothingConnection);
362 GNUNET_ARM_stop_service (arm, "do-nothing", TIMEOUT, &arm_notify_stop, 362 GNUNET_ARM_stop_service (arm, "do-nothing", TIMEOUT, &arm_notify_stop,
363 NULL); 363 NULL);
364 ok = 0; 364 ok = 0;