diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 09:55:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 09:55:08 +0000 |
commit | 1af6c9bcef1500cdf1c59be391c70c4dc6617401 (patch) | |
tree | 36250ab523816ba193ee61b34066b2913fd6b490 /src/util/helper.c | |
parent | 54babd8e9db3f7b81b03021f63b6112b57b7a8f0 (diff) | |
download | gnunet-1af6c9bcef1500cdf1c59be391c70c4dc6617401.tar.gz gnunet-1af6c9bcef1500cdf1c59be391c70c4dc6617401.zip |
-do not restart helper if exp_cb is set
Diffstat (limited to 'src/util/helper.c')
-rw-r--r-- | src/util/helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/helper.c b/src/util/helper.c index 1d3edb4d2..b88789b9d 100644 --- a/src/util/helper.c +++ b/src/util/helper.c | |||
@@ -496,6 +496,12 @@ helper_write (void *cls, | |||
496 | _("Error writing to `%s': %s\n"), | 496 | _("Error writing to `%s': %s\n"), |
497 | h->binary_name, | 497 | h->binary_name, |
498 | STRERROR (errno)); | 498 | STRERROR (errno)); |
499 | if (NULL != h->exp_cb) | ||
500 | { | ||
501 | h->exp_cb (h->cb_cls); | ||
502 | GNUNET_HELPER_stop (h); | ||
503 | return; | ||
504 | } | ||
499 | stop_helper (h); | 505 | stop_helper (h); |
500 | /* Restart the helper */ | 506 | /* Restart the helper */ |
501 | h->restart_task = | 507 | h->restart_task = |