aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/helper.c b/src/util/helper.c
index 1d3edb4d29..b88789b9d8 100644
--- a/src/util/helper.c
+++ b/src/util/helper.c
@@ -496,6 +496,12 @@ helper_write (void *cls,
_("Error writing to `%s': %s\n"),
h->binary_name,
STRERROR (errno));
+ if (NULL != h->exp_cb)
+ {
+ h->exp_cb (h->cb_cls);
+ GNUNET_HELPER_stop (h);
+ return;
+ }
stop_helper (h);
/* Restart the helper */
h->restart_task =