Skip to content

fix: SubscribeState filters signals by device path#52

Open
jmottier-niryo wants to merge 1 commit intoWifx:masterfrom
jmottier-niryo:fix/subscribe-state-path-filter
Open

fix: SubscribeState filters signals by device path#52
jmottier-niryo wants to merge 1 commit intoWifx:masterfrom
jmottier-niryo:fix/subscribe-state-path-filter

Conversation

@jmottier-niryo
Copy link
Copy Markdown

Problem

Device.SubscribeState() receives StateChanged signals from all NetworkManager devices instead of only the subscribed device.

Root Cause

While AddMatchSignal correctly specifies dbus.WithMatchObjectPath(d.GetPath()) to filter signals at the D-Bus level, d.conn.Signal(channel) registers the channel to receive all signals arriving on the shared D-Bus connection. The signal processing goroutine only filtered by signal name but didn't verify that signal.Path matches the device's object path.

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