Repository navigation
Conversation
OpenRGB 1.x sends every plugin-specific reply with device id 0, so the reply was matched to plugin 0 instead of the plugin that asked. When the Effects plugin was not the first plugin, connecting raised StopIteration. Remember the id of the plugin with a pending request and use it for the reply, and ignore replies that match no known plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJMbRWp4UiTgmjc2tsKpjU
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.
Requested by Tristyn · project thread
Fixes #99.
OpenRGB 1.0 and 1.1 send every plugin-specific reply with device id 0 (
SendReply_PluginSpecifichard-codes it). The client matched replies withplugin.id == device, so connecting raisedStopIterationwhenever the Effects plugin wasn't plugin 0. This is what breaks Home Assistant's OpenRGB integration (home-assistant/core#182151).ORGBPlugin.send_packetremembers which plugin sent a request. Plugin requests hold the lock until their reply is read, so only one can be outstanding.NetworkClient.readuses that id for thePLUGIN_SPECIFICreply instead of the header's device id.OpenRGBClient._callbackignores a plugin reply that matches no known plugin instead of raising.No API change. It also stays correct if OpenRGB starts echoing the plugin id in its replies.
Tested against a real OpenRGB 1.1 server (Linux) with plugins 0 Plasma Integration, 1 E1.31 Receiver, 2 Effects. The Effects reply arrives labelled device 0.
StopIteration.update()also succeeds.🤖 Generated with Claude Code
https://claude.ai/code/session_01UJMbRWp4UiTgmjc2tsKpjU