Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: The long delay in/out of Tweaks when network services changed #915

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

XK9274
Copy link
Member

@XK9274 XK9274 commented Jun 16, 2023

This was caused by NTP not being backgrounded - it was called in by update_networking.sh to update the time but in the wrong place, so when the state of a toggle was changed ntpdate ran but in the FG instead of BG, when the process dies the UI frees up.

  • Moved ntp into the check_ntpstate func, it runs often (when network state is changed in tweaks) but this will ensure time is kept closely in line with NTP, it's a self terminating process so won't hang around long.

  • Backgrounded 2 calls of ntp

This was caused by NTP not being backgrounded - it was called in by update_networking.sh to update the time but in the wrong place, so when the state of a toggle was changed ntpdate ran but in the FG instead of BG, when the process dies the UI frees up.

- Moved ntpdate into the check_ntpstate func, it runs often (when network state is changed in tweaks) but this will ensure time is kept closely in line with NTP, it's a self terminating process so won't hang around long.

- Backgrounded 2 calls of ntpdate
@schmurtzm schmurtzm enabled auto-merge June 18, 2023 20:44
@schmurtzm schmurtzm added this pull request to the merge queue Jun 18, 2023
Merged via the queue into main with commit 9eb5835 Jun 18, 2023
@schmurtzm schmurtzm deleted the fix-delay-tweaks branch June 18, 2023 20:55
@Aemiii91 Aemiii91 added the bug in onion Something isn't working label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in onion Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants