diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-06-20 11:44:11 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-06-20 11:44:11 +0000 |
commit | 5175505389b7ad8345cee069094b4e459d6d0204 (patch) | |
tree | 229b48dce243d334a772c5fd3e75860eb258f20f /src/transport/test_transport_api_reliability.c | |
parent | accae6c152eaacdf41b6069b88b3e5744ff06bba (diff) | |
download | gnunet-5175505389b7ad8345cee069094b4e459d6d0204.tar.gz gnunet-5175505389b7ad8345cee069094b4e459d6d0204.zip |
fixing assertion transport_api_new.c:379
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 4af8a24f9..7fc9d43b4 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -333,7 +333,8 @@ notify_ready (void *cls, size_t size, void *buf) | |||
333 | while (size - ret >= s); | 333 | while (size - ret >= s); |
334 | if (n < TOTAL_MSGS) | 334 | if (n < TOTAL_MSGS) |
335 | { | 335 | { |
336 | th_p2 = GNUNET_TRANSPORT_notify_transmit_ready (p2.th, | 336 | if (th_p2 == NULL) |
337 | th_p2 = GNUNET_TRANSPORT_notify_transmit_ready (p2.th, | ||
337 | &p1.id, | 338 | &p1.id, |
338 | s, 0, TIMEOUT, | 339 | s, 0, TIMEOUT, |
339 | ¬ify_ready, | 340 | ¬ify_ready, |
@@ -360,6 +361,8 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
360 | "Peer `%4s' disconnected (%p)!\n", | 361 | "Peer `%4s' disconnected (%p)!\n", |
361 | GNUNET_i2s (peer), cls); | 362 | GNUNET_i2s (peer), cls); |
362 | #endif | 363 | #endif |
364 | if (th_p2 != NULL) | ||
365 | GNUNET_TRANSPORT_notify_transmit_ready_cancel(th_p2); | ||
363 | } | 366 | } |
364 | 367 | ||
365 | 368 | ||