aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r--src/cadet/cadet_api.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 6894d2482..d5b0688e6 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -1,20 +1,22 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2011 GNUnet e.V. 3 Copyright (C) 2011 GNUnet e.V.
4
4 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
6 by the Free Software Foundation; either version 3, or (at your 7 by the Free Software Foundation; either version 3, or (at your
7 option) any later version. 8 option) any later version.
9
8 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details. 13 General Public License for more details.
14
12 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
13 along with GNUnet; see the file COPYING. If not, write to the 16 along with GNUnet; see the file COPYING. If not, write to the
14 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
15 Boston, MA 02110-1301, USA. 18 Boston, MA 02110-1301, USA.
16*/ 19*/
17
18/** 20/**
19 * @file cadet/cadet_api.c 21 * @file cadet/cadet_api.c
20 * @brief cadet api: client implementation of new cadet service 22 * @brief cadet api: client implementation of new cadet service
@@ -702,12 +704,8 @@ static void
702reconnect_cbk (void *cls) 704reconnect_cbk (void *cls)
703{ 705{
704 struct GNUNET_CADET_Handle *h = cls; 706 struct GNUNET_CADET_Handle *h = cls;
705 const struct GNUNET_SCHEDULER_TaskContext *tc;
706 707
707 h->reconnect_task = NULL; 708 h->reconnect_task = NULL;
708 tc = GNUNET_SCHEDULER_get_task_context ();
709 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
710 return;
711 do_reconnect (h); 709 do_reconnect (h);
712} 710}
713 711
@@ -718,7 +716,7 @@ reconnect_cbk (void *cls)
718 * 716 *
719 * @param h handle to the cadet 717 * @param h handle to the cadet
720 * 718 *
721 * @return GNUNET_YES in case of sucess, GNUNET_NO otherwise (service down...) 719 * @return #GNUNET_YES in case of sucess, #GNUNET_NO otherwise (service down...)
722 */ 720 */
723static void 721static void
724reconnect (struct GNUNET_CADET_Handle *h) 722reconnect (struct GNUNET_CADET_Handle *h)