refactor torProvider: merge networkStatus and BootstrapStatus, simplify monitorRestart logic. Catch case due to magic numbers where it was not restarting tor when tor was killed #3

Merged
sarah merged 1 commits from restart into master 2020-05-12 21:50:58 +00:00
Owner

I'm a derp. using magic numbers missed a -1 to -2 so torProvider wasn't restarting tor when it was dead. Fixed that and refactored a bit more:

tested again with cwtch ui

doesn't cycle tor when network-liveness reports down. does cycle tor when tor is killed

manages restarts in both cases, either redetecting network up and resuming at 100 progress or restarting tor fully

I'm a derp. using magic numbers missed a -1 to -2 so torProvider wasn't restarting tor when it was dead. Fixed that and refactored a bit more: tested again with cwtch ui doesn't cycle tor when network-liveness reports down. does cycle tor when tor is `kill`ed manages restarts in both cases, either redetecting network up and resuming at 100 progress or restarting tor fully
sarah was assigned by dan 2020-05-12 21:37:17 +00:00
sarah closed this pull request 2020-05-12 21:50:58 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: openprivacy/connectivity#3
No description provided.