diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-09-03 18:04:10 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-09-03 18:04:10 +0000 |
commit | 7f4591909fcadddac2679d7e1568d80f67c18d4b (patch) | |
tree | 7800759512db5536dd3d0671a85a2bc31e99bbb6 /src/cadet/gnunet-service-cadet_peer.c | |
parent | 31b1ed4f795ee7300958410886c77f4d3459550f (diff) | |
download | gnunet-7f4591909fcadddac2679d7e1568d80f67c18d4b.tar.gz gnunet-7f4591909fcadddac2679d7e1568d80f67c18d4b.zip |
Fix #3929: cancel poll towards disconnected neighbor
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 9b7c19e4a..64adb6268 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c | |||
@@ -343,7 +343,7 @@ GCP_debug (const struct CadetPeer *p, enum GNUNET_ErrorType level) | |||
343 | * Iterator to notify all connections of a broken link. Mark connections | 343 | * Iterator to notify all connections of a broken link. Mark connections |
344 | * to destroy after all traffic has been sent. | 344 | * to destroy after all traffic has been sent. |
345 | * | 345 | * |
346 | * @param cls Closure (peer disconnected). | 346 | * @param cls Closure (disconnected peer). |
347 | * @param key Current key code (peer id). | 347 | * @param key Current key code (peer id). |
348 | * @param value Value in the hash map (connection). | 348 | * @param value Value in the hash map (connection). |
349 | * | 349 | * |
@@ -361,8 +361,7 @@ notify_broken (void *cls, | |||
361 | "Notifying %s due to %s\n", | 361 | "Notifying %s due to %s\n", |
362 | GCC_2s (c), | 362 | GCC_2s (c), |
363 | GCP_2s (peer)); | 363 | GCP_2s (peer)); |
364 | GCC_notify_broken (c, | 364 | GCC_neighbor_disconnected (c, peer); |
365 | peer); | ||
366 | return GNUNET_YES; | 365 | return GNUNET_YES; |
367 | } | 366 | } |
368 | 367 | ||