aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-08 15:03:32 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-08 15:03:32 +0000
commit07ec41e414c2e47df842b83acc481c257ce4de15 (patch)
treeec542749bcde8b20426b98ae5c2428f6c158b271 /src/nse
parentd572acdffc00a8e70912558d99af608a00dc8cdd (diff)
downloadgnunet-07ec41e414c2e47df842b83acc481c257ce4de15.tar.gz
gnunet-07ec41e414c2e47df842b83acc481c257ce4de15.zip
- have a timeout for cases where flushing takes too long
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index 433274372..e69555f37 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -1334,7 +1334,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1334 my_private_key = NULL; 1334 my_private_key = NULL;
1335 } 1335 }
1336#if ENABLE_NSE_HISTOGRAM 1336#if ENABLE_NSE_HISTOGRAM
1337 GNUNET_TESTBED_LOGGER_flush (lh, &flush_comp_cb, NULL); /* actual shutdown delayed */ 1337 struct GNUNET_TIME_Relative timeout;
1338 timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30);
1339 GNUNET_TESTBED_LOGGER_flush (lh, timeout, &flush_comp_cb, NULL);
1338#endif 1340#endif
1339} 1341}
1340 1342