aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/test_cadet_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/test_cadet_local.c')
-rw-r--r--src/cadet/test_cadet_local.c5
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 */
180static void 180static void
181channel_end (void *cls, const struct GNUNET_CADET_Channel *channel, 181channel_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 (