diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-08-31 14:37:07 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-08-31 14:37:07 +0000 |
commit | 5d70116125cf85715849e8ab59bc2303a776fe8a (patch) | |
tree | 4fe47d4459ed93fb87f927477c269d19e5582d24 /src/mesh/test_mesh_api.c | |
parent | 721db5457eebf6e0d713cde2585ba298dbcfe1b7 (diff) | |
download | gnunet-5d70116125cf85715849e8ab59bc2303a776fe8a.tar.gz gnunet-5d70116125cf85715849e8ab59bc2303a776fe8a.zip |
fixes, documentation, refactoring
Diffstat (limited to 'src/mesh/test_mesh_api.c')
-rw-r--r-- | src/mesh/test_mesh_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/test_mesh_api.c b/src/mesh/test_mesh_api.c index c60b0314e..312e72375 100644 --- a/src/mesh/test_mesh_api.c +++ b/src/mesh/test_mesh_api.c | |||
@@ -104,7 +104,7 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
104 | struct GNUNET_MESH_Tunnel *t; | 104 | struct GNUNET_MESH_Tunnel *t; |
105 | 105 | ||
106 | test_task = (GNUNET_SCHEDULER_TaskIdentifier) 0; | 106 | test_task = (GNUNET_SCHEDULER_TaskIdentifier) 0; |
107 | mesh = GNUNET_MESH_connect (cfg, NULL, NULL, handlers, app); | 107 | mesh = GNUNET_MESH_connect (cfg, 10, NULL, NULL, handlers, app); |
108 | if (NULL == mesh) | 108 | if (NULL == mesh) |
109 | { | 109 | { |
110 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Couldn't connect to mesh :(\n"); | 110 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Couldn't connect to mesh :(\n"); |
@@ -120,7 +120,7 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
120 | GNUNET_MESH_tunnel_destroy (t); | 120 | GNUNET_MESH_tunnel_destroy (t); |
121 | 121 | ||
122 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply | 122 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply |
123 | (GNUNET_TIME_UNIT_SECONDS, 5), &do_shutdown, | 123 | (GNUNET_TIME_UNIT_SECONDS, 1), &do_shutdown, |
124 | NULL); | 124 | NULL); |
125 | } | 125 | } |
126 | 126 | ||