Closed tdubrownik closed 11 years ago
As per http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages , a DBus signal may not have a Sender header field. As that makes msg.Headers[FieldSender] a Variant that cannot be converted to string, runtime panics ensue.
A real-life example of a service that issues such signals is PulseAudio.
I added a failsafe for this, which ensures an empty string Sender value for signals that do not have an explicit Sender header.
Nice catch. I simplified the code a bit after merging.
As per http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages , a DBus signal may not have a Sender header field. As that makes msg.Headers[FieldSender] a Variant that cannot be converted to string, runtime panics ensue.
A real-life example of a service that issues such signals is PulseAudio.
I added a failsafe for this, which ensures an empty string Sender value for signals that do not have an explicit Sender header.