Skip to content

Refactor NEOFLUX implementation for thread safety and race condition fix#9

Merged
VisualBoy merged 2 commits intoneoflux-implementationfrom
neoflux-refactor
Nov 29, 2025
Merged

Refactor NEOFLUX implementation for thread safety and race condition fix#9
VisualBoy merged 2 commits intoneoflux-implementationfrom
neoflux-refactor

Conversation

@VisualBoy
Copy link
Owner

  • Fixed DOM race condition by moving frontend initialization to onAfterBinding.
  • Added explicit DOM availability checks for NeoFluxController.
  • Implemented threading.Lock in LedWorker for thread-safe configuration updates.
  • Added G-code command deduplication to reduce serial traffic.
  • Removed redundant command key from API payload.

Thank you for your interest into contributing to OctoPrint-LiveGCodeControl, it's highly appreciated!

Before submitting please make sure you have ticked all points on this checklist:

  • Your PR targets the devel branch.
  • Your PR was opened from a custom branch on your repository (no PRs from your version of master or devel please)
  • Your PR only contains relevant changes: no unrelated files, no dead code, ideally only one commit - rebase your PR if necessary!
  • Your changes follow the existing coding style.
  • You have tested your changes (please state how!)

Feel free to delete all this help text, then describe your PR further. You may use the template provided below to do that. The more details the better!


What does this PR do and why is it necessary?

How was it tested? How can it be tested by the reviewer?

Any background context you want to provide?

What are the relevant tickets if any?

Screenshots (if appropriate)

Further notes

google-labs-jules bot and others added 2 commits November 29, 2025 07:04
- Fixed DOM race condition by moving frontend initialization to `onAfterBinding`.
- Added explicit DOM availability checks for `NeoFluxController`.
- Implemented `threading.Lock` in `LedWorker` for thread-safe configuration updates.
- Added G-code command deduplication to reduce serial traffic.
- Removed redundant command key from API payload.
@VisualBoy VisualBoy merged commit 472aefe into neoflux-implementation Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant