handsfree: Don't emit signals if not registered

This commit is contained in:
Denis Kenzior 2011-10-13 12:54:45 -05:00
parent f05a78a450
commit e32346aa51
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ void ofono_handsfree_set_inband_ringing(struct ofono_handsfree *hf,
hf->inband_ringing = enabled;
if (__ofono_atom_get_registered(hf->atom) == FALSE)
return;
ofono_dbus_signal_property_changed(conn, path,
OFONO_HANDSFREE_INTERFACE,
"InbandRinging", DBUS_TYPE_BOOLEAN,