diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-15 21:49:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-15 21:49:06 +0100 |
commit | 71785fccb8584bd028ff48aa56f55e84324c569e (patch) | |
tree | df07376ac00f04484045be67f5743ff42449a2d2 /src/cadet/test_cadet_local.c | |
parent | 4270685ca41e6401f0836716a24e87dbab4d1145 (diff) | |
download | gnunet-71785fccb8584bd028ff48aa56f55e84324c569e.tar.gz gnunet-71785fccb8584bd028ff48aa56f55e84324c569e.zip |
cleaning up some CADET logic, improving types used
Diffstat (limited to 'src/cadet/test_cadet_local.c')
-rw-r--r-- | src/cadet/test_cadet_local.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cadet/test_cadet_local.c b/src/cadet/test_cadet_local.c index c226563d5..d15785cb0 100644 --- a/src/cadet/test_cadet_local.c +++ b/src/cadet/test_cadet_local.c | |||
@@ -178,7 +178,8 @@ inbound_channel (void *cls, | |||
178 | * with the channel is stored | 178 | * with the channel is stored |
179 | */ | 179 | */ |
180 | static void | 180 | static void |
181 | channel_end (void *cls, const struct GNUNET_CADET_Channel *channel, | 181 | channel_end (void *cls, |
182 | const struct GNUNET_CADET_Channel *channel, | ||
182 | void *channel_ctx) | 183 | void *channel_ctx) |
183 | { | 184 | { |
184 | long id = (long) cls; | 185 | long id = (long) cls; |
@@ -191,6 +192,8 @@ channel_end (void *cls, const struct GNUNET_CADET_Channel *channel, | |||
191 | GNUNET_CADET_notify_transmit_ready_cancel (mth); | 192 | GNUNET_CADET_notify_transmit_ready_cancel (mth); |
192 | mth = NULL; | 193 | mth = NULL; |
193 | } | 194 | } |
195 | if (channel == ch) | ||
196 | ch = NULL; | ||
194 | if (GNUNET_NO == got_data) | 197 | if (GNUNET_NO == got_data) |
195 | { | 198 | { |
196 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply ( | 199 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply ( |