Fix hotplug usb reset with external guiders#2369
Closed
cfuture81 wants to merge 2 commits intoindilib:masterfrom
Closed
Fix hotplug usb reset with external guiders#2369cfuture81 wants to merge 2 commits intoindilib:masterfrom
cfuture81 wants to merge 2 commits intoindilib:masterfrom
Conversation
added 2 commits
April 11, 2026 11:01
…tching base class LX200Telescope::Sync() behavior — prevents ~50s ALIGN_SYNCING stall in KStars/Ekos
…resets — prevents INDI client property cache invalidation when cameras (e.g. ZWO ASI) reset USB after frame readout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some INDI camera drivers perform a USB reset after each frame
readout. During this brief reset window the device transiently disappears from
USB enumeration. The HotPlug manager sees the disappearance and calls
destroyDevice(), which invalidates every property pointer held by connected
clients (KStars, PHD2, etc.). When the device reappears milliseconds later it is
re-created from scratch, but the clients are left with dangling references.
This patch adds an isConnected() check before removal. If the device is actively
connected to a client the removal is skipped and a debug message is logged. The
device will still be cleaned up normally if it genuinely disconnects.
Tested with ZWO ASI220MM Mini on StellarMate (aarch64) during extended
single-exposure and streaming guide sessions.