mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'tor-gitlab/mr/337'
This commit is contained in:
@@ -1820,6 +1820,12 @@ check_network_participation_callback(time_t now, const or_options_t *options)
|
||||
goto found_activity;
|
||||
}
|
||||
|
||||
/* If we aren't allowed to become dormant, then participation doesn't
|
||||
matter */
|
||||
if (! options->DormantTimeoutEnabled) {
|
||||
goto found_activity;
|
||||
}
|
||||
|
||||
/* If we're running an onion service, we can't become dormant. */
|
||||
/* XXXX this would be nice to change, so that we can be dormant with a
|
||||
* service. */
|
||||
|
||||
@@ -154,6 +154,9 @@ netstatus_load_from_state(const mainloop_state_t *state, time_t now)
|
||||
last_activity = now;
|
||||
participating_on_network = true;
|
||||
}
|
||||
if (! get_options()->DormantTimeoutEnabled) {
|
||||
participating_on_network = true;
|
||||
}
|
||||
reset_user_activity(last_activity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user