From f015c8727de7d7b6eaf305d3269559f1f701dbf7 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 9 Nov 2022 00:37:51 +0000 Subject: [PATCH] Don't expire tunnel connection broadcasts. They go away when either connection goes away. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4019 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssb.c b/src/ssb.c index 3426d40a..e31ca039 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -2494,7 +2494,7 @@ static void _tf_ssb_broadcast_cleanup_timer(uv_timer_t* timer) time_t now = time(NULL); for (tf_ssb_broadcast_t** it = &ssb->broadcasts; *it;) { - if ((*it)->mtime < now - 10) + if (!(*it)->tunnel_connection && (*it)->mtime < now - 10) { tf_ssb_broadcast_t* node = *it; *it = node->next;