diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-07-20 12:07:06 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-07-20 12:07:06 +0000 |
commit | 562d3a22d7882660b5b0f805f6b98e0b2814d9b8 (patch) | |
tree | 45dd88b1551215d3851dd7aaa129c1ab3889b174 /src/cadet | |
parent | dbb12b0c0216846ec0cfa30ed2760c221434eaee (diff) | |
download | gnunet-562d3a22d7882660b5b0f805f6b98e0b2814d9b8.tar.gz gnunet-562d3a22d7882660b5b0f805f6b98e0b2814d9b8.zip |
- open port after handle check
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/test_cadet_local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/test_cadet_local.c b/src/cadet/test_cadet_local.c index ce6f0b29f..c226563d5 100644 --- a/src/cadet/test_cadet_local.c +++ b/src/cadet/test_cadet_local.c | |||
@@ -296,8 +296,6 @@ run (void *cls, | |||
296 | (void *) 2L, /* cls */ | 296 | (void *) 2L, /* cls */ |
297 | &channel_end, /* channel end hndlr */ | 297 | &channel_end, /* channel end hndlr */ |
298 | handlers2); /* traffic handlers */ | 298 | handlers2); /* traffic handlers */ |
299 | GNUNET_CADET_open_port (cadet_peer_2, GC_u2h (1), | ||
300 | &inbound_channel, (void *) 2L); | ||
301 | 299 | ||
302 | if (NULL == cadet_peer_1 || NULL == cadet_peer_2) | 300 | if (NULL == cadet_peer_1 || NULL == cadet_peer_2) |
303 | { | 301 | { |
@@ -307,6 +305,8 @@ run (void *cls, | |||
307 | GNUNET_SCHEDULER_shutdown (); | 305 | GNUNET_SCHEDULER_shutdown (); |
308 | return; | 306 | return; |
309 | } | 307 | } |
308 | GNUNET_CADET_open_port (cadet_peer_2, GC_u2h (1), | ||
309 | &inbound_channel, (void *) 2L); | ||
310 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply ( | 310 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply ( |
311 | GNUNET_TIME_UNIT_SECONDS, | 311 | GNUNET_TIME_UNIT_SECONDS, |
312 | 2), | 312 | 2), |