diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-18 11:56:54 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-18 11:56:54 +0000 |
commit | c4c08b52cfb51dee330402c44a5dbdeacab3b1a8 (patch) | |
tree | 24cb8153c217385fa9078b7687531e1210e70cd0 /src | |
parent | 458547be970cf86aeb3072ce0f33a61864780acb (diff) | |
download | gnunet-c4c08b52cfb51dee330402c44a5dbdeacab3b1a8.tar.gz gnunet-c4c08b52cfb51dee330402c44a5dbdeacab3b1a8.zip |
- cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/cadet_api.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 429f2642a..3e1f54dcd 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -723,16 +723,12 @@ static void | |||
723 | reconnect (struct GNUNET_CADET_Handle *h) | 723 | reconnect (struct GNUNET_CADET_Handle *h) |
724 | { | 724 | { |
725 | struct GNUNET_CADET_Channel *ch; | 725 | struct GNUNET_CADET_Channel *ch; |
726 | struct GNUNET_CADET_Channel *next; | ||
727 | 726 | ||
728 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 727 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
729 | "Requested RECONNECT, destroying all channels\n"); | 728 | "Requested RECONNECT, destroying all channels\n"); |
730 | h->in_receive = GNUNET_NO; | 729 | h->in_receive = GNUNET_NO; |
731 | for (ch = h->channels_head; NULL != ch; ch = next) | 730 | for (ch = h->channels_head; NULL != ch; ch = h->channels_head) |
732 | { | ||
733 | next = ch->next; | ||
734 | destroy_channel (ch, GNUNET_YES); | 731 | destroy_channel (ch, GNUNET_YES); |
735 | } | ||
736 | if (NULL == h->reconnect_task) | 732 | if (NULL == h->reconnect_task) |
737 | h->reconnect_task = GNUNET_SCHEDULER_add_delayed (h->reconnect_time, | 733 | h->reconnect_task = GNUNET_SCHEDULER_add_delayed (h->reconnect_time, |
738 | &reconnect_cbk, h); | 734 | &reconnect_cbk, h); |
@@ -751,7 +747,7 @@ reconnect (struct GNUNET_CADET_Handle *h) | |||
751 | */ | 747 | */ |
752 | static void | 748 | static void |
753 | process_channel_created (struct GNUNET_CADET_Handle *h, | 749 | process_channel_created (struct GNUNET_CADET_Handle *h, |
754 | const struct GNUNET_CADET_ChannelMessage *msg) | 750 | const struct GNUNET_CADET_ChannelMessage *msg) |
755 | { | 751 | { |
756 | struct GNUNET_CADET_Channel *ch; | 752 | struct GNUNET_CADET_Channel *ch; |
757 | CADET_ChannelNumber chid; | 753 | CADET_ChannelNumber chid; |