nemomobile-packages/ofono — pull request #131 by marttipiirainen (2013-12-10 06:58:50+00:00)
Title: [gdbus] Handle dbus disconnect signal

A previous patch stopped ofono from crashing when it received the disconnect signal (which has no sender). However this wasn't enough. gdbus/mainloop.c actually registers a listener for the disconnect signal, so message_filter should dispatch it.

This patch makes sure of that, and hardens message_filter's loop against any other fields which might be NULL. (the logic: if the data-> field is NULL it means don't filter on that value; if the message field is NULL then only match data structs that have that field NULL.)

Without this patch, if dbus is restarted ofonod will hang around and be useless until the next reboot.