aboutsummaryrefslogtreecommitdiff
path: root/src/util/helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-29 21:24:56 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-29 21:24:56 +0000
commit3830988cd738e89f546a0ff4dc4bf6e67bc764dd (patch)
tree34f7e6fc7bb551652fe062fcebaa645ce6e3bc7d /src/util/helper.c
parente7926986c823043a6296a73a518f21ad0d39a4b4 (diff)
downloadgnunet-3830988cd738e89f546a0ff4dc4bf6e67bc764dd.tar.gz
gnunet-3830988cd738e89f546a0ff4dc4bf6e67bc764dd.zip
-enable helper shutdown during mst callback
Diffstat (limited to 'src/util/helper.c')
-rw-r--r--src/util/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/helper.c b/src/util/helper.c
index 029203638..b03990fbe 100644
--- a/src/util/helper.c
+++ b/src/util/helper.c
@@ -264,6 +264,8 @@ helper_read (void *cls,
264 _("Got %u bytes from helper `%s'\n"), 264 _("Got %u bytes from helper `%s'\n"),
265 (unsigned int) t, 265 (unsigned int) t,
266 h->binary_name); 266 h->binary_name);
267 h->read_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
268 h->fh_from_helper, &helper_read, h);
267 if (GNUNET_SYSERR == 269 if (GNUNET_SYSERR ==
268 GNUNET_SERVER_mst_receive (h->mst, NULL, buf, t, GNUNET_NO, GNUNET_NO)) 270 GNUNET_SERVER_mst_receive (h->mst, NULL, buf, t, GNUNET_NO, GNUNET_NO))
269 { 271 {
@@ -278,8 +280,6 @@ helper_read (void *cls,
278 return; 280 return;
279 281
280 } 282 }
281 h->read_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
282 h->fh_from_helper, &helper_read, h);
283} 283}
284 284
285 285