diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-23 15:03:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-23 15:03:29 +0100 |
commit | a08d1c815cb62b194c4dcbacbc4fdf97376482d4 (patch) | |
tree | be9beb38b9105c7d63f27c774fd6190525f1c51b /src/cadet/test_cadet.c | |
parent | b25a64c10b76c48ce1eda6bc923ff40a82f0a673 (diff) | |
download | gnunet-a08d1c815cb62b194c4dcbacbc4fdf97376482d4.tar.gz gnunet-a08d1c815cb62b194c4dcbacbc4fdf97376482d4.zip |
do not send duplicate LOCAL_CHANNEL_CREATE message
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r-- | src/cadet/test_cadet.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 16466ca0d..ce0178bd5 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c | |||
@@ -787,7 +787,16 @@ incoming_channel (void *cls, | |||
787 | ok++; | 787 | ok++; |
788 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok); | 788 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok); |
789 | if ((long) cls == peers_requested - 1) | 789 | if ((long) cls == peers_requested - 1) |
790 | { | ||
791 | if (NULL != incoming_ch) | ||
792 | { | ||
793 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
794 | "Duplicate incoming channel for client %lu\n", | ||
795 | (long) cls); | ||
796 | GNUNET_break(0); | ||
797 | } | ||
790 | incoming_ch = channel; | 798 | incoming_ch = channel; |
799 | } | ||
791 | else | 800 | else |
792 | { | 801 | { |
793 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 802 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |