aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/cadet_path.c')
-rw-r--r--src/cadet/cadet_path.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cadet/cadet_path.c b/src/cadet/cadet_path.c
index 1ea2b185f..47241292b 100644
--- a/src/cadet/cadet_path.c
+++ b/src/cadet/cadet_path.c
@@ -39,18 +39,19 @@
39 * Removes the path from the peer (except for direct paths). 39 * Removes the path from the peer (except for direct paths).
40 * 40 *
41 * @param cls Closure (path to destroy). 41 * @param cls Closure (path to destroy).
42 * @param tc Task context.
43 */ 42 */
44static void 43static void
45path_destroy_delayed (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 44path_destroy_delayed (void *cls)
46{ 45{
47 struct CadetPeerPath *path = cls; 46 struct CadetPeerPath *path = cls;
48 struct CadetPeer *peer; 47 struct CadetPeer *peer;
48 const struct GNUNET_SCHEDULER_TaskContext *tc;
49 49
50 LOG (GNUNET_ERROR_TYPE_INFO, "Destroy delayed %p (%u)\n", path, path->length); 50 LOG (GNUNET_ERROR_TYPE_INFO, "Destroy delayed %p (%u)\n", path, path->length);
51 path->path_delete = NULL; 51 path->path_delete = NULL;
52 52
53 /* During shutdown, the peers peermap might not exist anymore. */ 53 /* During shutdown, the peers peermap might not exist anymore. */
54 tc = GNUNET_SCHEDULER_get_task_context ();
54 if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) == 0) 55 if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) == 0)
55 { 56 {
56 if (2 >= path->length) 57 if (2 >= path->length)