diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-08-13 17:58:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-08-13 17:58:10 +0200 |
commit | b8da8b39b97eb830a7c03c79e5e1d8508026987c (patch) | |
tree | f7a4d3367393328cba3a3533fb8c1729f870b990 /src/cadet | |
parent | 0bd93f589ac8cdfdd93f6f427287179c15e149e3 (diff) | |
download | gnunet-b8da8b39b97eb830a7c03c79e5e1d8508026987c.tar.gz gnunet-b8da8b39b97eb830a7c03c79e5e1d8508026987c.zip |
do notify client about destroyed channel on MQ error
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/cadet_api.c | 3 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_hello.c | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index e2ca461a5..23ea46e59 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -549,6 +549,9 @@ cadet_mq_error_handler (void *cls, | |||
549 | else | 549 | else |
550 | { | 550 | { |
551 | GNUNET_break (0); | 551 | GNUNET_break (0); |
552 | if (NULL != ch->disconnects) | ||
553 | ch->disconnects (ch->ctx, | ||
554 | ch); | ||
552 | GNUNET_CADET_channel_destroy (ch); | 555 | GNUNET_CADET_channel_destroy (ch); |
553 | } | 556 | } |
554 | } | 557 | } |
diff --git a/src/cadet/gnunet-service-cadet_hello.c b/src/cadet/gnunet-service-cadet_hello.c index 61686e5da..0061bddc2 100644 --- a/src/cadet/gnunet-service-cadet_hello.c +++ b/src/cadet/gnunet-service-cadet_hello.c | |||
@@ -17,13 +17,10 @@ | |||
17 | */ | 17 | */ |
18 | /** | 18 | /** |
19 | * @file cadet/gnunet-service-cadet_hello.c | 19 | * @file cadet/gnunet-service-cadet_hello.c |
20 | * @brief spread knowledge about how to contact other peers from PEERINFO | 20 | * @brief spread knowledge about how to contact us (get HELLO from peerinfo), |
21 | * and remember HELLOs of other peers we have an interest in | ||
21 | * @author Bartlomiej Polot | 22 | * @author Bartlomiej Polot |
22 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
23 | * | ||
24 | * TODO: | ||
25 | * - is most of this necessary/helpful? | ||
26 | * - should we not simply restrict this to OUR hello? | ||
27 | */ | 24 | */ |
28 | #include "platform.h" | 25 | #include "platform.h" |
29 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |