projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- give out run handle through which master controller's handle can be retrieved
[oweals/gnunet.git]
/
src
/
testbed
/
test_testbed_logger_api.c
diff --git
a/src/testbed/test_testbed_logger_api.c
b/src/testbed/test_testbed_logger_api.c
index 438b131d0053591b2efdeeba78eeac5893a59075..a8ed3d22c92d15734c5cc27885da0a3408d48c4c 100644
(file)
--- a/
src/testbed/test_testbed_logger_api.c
+++ b/
src/testbed/test_testbed_logger_api.c
@@
-90,6
+90,8
@@
shutdown_now ()
CANCEL_TASK (abort_task);
CANCEL_TASK (write_task);
GNUNET_free_non_null (search_dir);
CANCEL_TASK (abort_task);
CANCEL_TASK (write_task);
GNUNET_free_non_null (search_dir);
+ if (NULL != h)
+ GNUNET_TESTBED_LOGGER_disconnect (h);
GNUNET_SCHEDULER_shutdown ();
}
GNUNET_SCHEDULER_shutdown ();
}
@@
-183,7
+185,8
@@
do_write (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_TESTBED_LOGGER_write (h, buf, BSIZE);
if (0 == i++)
return;
GNUNET_TESTBED_LOGGER_write (h, buf, BSIZE);
if (0 == i++)
return;
- GNUNET_TESTBED_LOGGER_flush (h, &flush_comp, &write_task);
+ GNUNET_TESTBED_LOGGER_flush (h, GNUNET_TIME_UNIT_FOREVER_REL,
+ &flush_comp, &write_task);
}
}