-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial signals lost when no previous method call have been made #86
Comments
sdrik
added a commit
to sdrik/node-dbus-next
that referenced
this issue
Sep 18, 2021
sdrik
added a commit
to sdrik/node-dbus-next
that referenced
this issue
Sep 18, 2021
ProxyInterface's listener is dropping signals if the sender does not match an already known name owner for the proxied object. This can occur when no previous method call have been sent to this object, which is always the case for a newly XML-constructed proxy object. Moreover, if the object doesn't expose any method, it is simply impossible to get any signal from it ! In the introspection case, the initial org.freedesktop.Introspectable.Introspect call will always make the name owner initially known to the bus connection. To prevent this, we're getting the name owner during the XML based proxy construction by querying the org.freedesktop.DBus.GetNameOwner method. Fixes dbusjs#86
sdrik
added a commit
to sdrik/node-dbus-next
that referenced
this issue
Sep 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ProxyInterface's listener is dropping signals if the sender does not match an already known name owner for the proxied object.
This can occur when no previous method call have been sent to this object, which is always the case for a newly XML-constructed proxy object. Moreover, if the object doesn't expose any method, it is simply impossible to get any signal from it !
In the introspection case, the initial org.freedesktop.Introspectable.Introspect call will always make the name owner initially known to the bus connection.
The text was updated successfully, but these errors were encountered: