Implement an DormantCanceledByStartup option

Closes ticket 29357, and comes with appropriate notions of caution.
This commit is contained in:
Nick Mathewson
2019-03-17 13:48:00 -04:00
parent 1547fd99a6
commit d194f6bedf
6 changed files with 40 additions and 0 deletions
+4
View File
@@ -144,6 +144,10 @@ netstatus_load_from_state(const or_state_t *state, time_t now)
last_activity = now - 60 * state->MinutesSinceUserActivity;
participating_on_network = true;
}
if (get_options()->DormantCanceledByStartup) {
last_activity = now;
participating_on_network = true;
}
reset_user_activity(last_activity);
}