Skip to content

UpdateManager: clear task handle when GUI update cannot start - #22

Open
jamesmulcahy wants to merge 1 commit into
NSPManager:develfrom
jamesmulcahy:fix/update-gui-clear-task-handle
Open

jamesmulcahy wants to merge 1 commit into
NSPManager:develfrom
jamesmulcahy:fix/update-gui-clear-task-handle

Conversation

@jamesmulcahy

Copy link
Copy Markdown
Contributor

Summary

If update_gui cannot get the NSPanel config, it logs an error and deletes its task, but leaves UpdateManager::_current_update_task pointing at the deleted task. Every command handler checks _current_update_task == NULL before starting an update, so all later firmware_update, firmware_update_force and tft_update commands are silently ignored until the panel reboots.

This clears _current_update_task before the task deletes itself, matching what update_firmware already does.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X7aYyRjzk53Sd7gxF46E3u

If update_gui could not get the NSPanel config it deleted its task
without clearing _current_update_task, so all later update commands were
ignored until reboot.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X7aYyRjzk53Sd7gxF46E3u
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