projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f10f1f
)
- Fixed assertion in testcase
author
Bart Polot
<bart@net.in.tum.de>
Tue, 21 Feb 2012 10:57:01 +0000
(10:57 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 21 Feb 2012 10:57:01 +0000
(10:57 +0000)
src/mesh/test_mesh_api.c
patch
|
blob
|
history
diff --git
a/src/mesh/test_mesh_api.c
b/src/mesh/test_mesh_api.c
index 6fcc8c7ff90482332bc26c5607ea7b1631ff2e6b..d92c2593807fd0837578b3fd9fc76fd01408d94e 100644
(file)
--- a/
src/mesh/test_mesh_api.c
+++ b/
src/mesh/test_mesh_api.c
@@
-68,6
+68,10
@@
static struct GNUNET_MESH_MessageHandler handlers[] = { {&callback, 1, 0},
static void
do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
+ if (NULL != t)
+ {
+ GNUNET_MESH_tunnel_destroy (t);
+ }
if (0 != abort_task)
{
GNUNET_SCHEDULER_cancel (abort_task);
@@
-116,10
+120,6
@@
test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
}
t = GNUNET_MESH_tunnel_create (mesh, NULL, NULL, NULL, NULL);
- if (NULL != t)
- {
- GNUNET_MESH_tunnel_destroy (t);
- }
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 5), &do_shutdown,