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
This commit is contained in:
parent
3a5ae4c228
commit
f015c8727d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user