call-settings: Check if ussd is busy

This commit is contained in:
Yang Gu 2010-09-06 10:19:55 +08:00 committed by Denis Kenzior
parent e24d1d1285
commit 58b5303c08
1 changed files with 2 additions and 2 deletions

View File

@ -950,7 +950,7 @@ static DBusMessage *cs_get_properties(DBusConnection *conn, DBusMessage *msg,
{
struct ofono_call_settings *cs = data;
if (cs->pending)
if (cs->pending || __ofono_ussd_is_busy(cs->ussd))
return __ofono_error_busy(msg);
if (cs->flags & CALL_SETTINGS_FLAG_CACHED)
@ -1127,7 +1127,7 @@ static DBusMessage *cs_set_property(DBusConnection *conn, DBusMessage *msg,
const char *property;
int cls;
if (cs->pending)
if (cs->pending || __ofono_ussd_is_busy(cs->ussd))
return __ofono_error_busy(msg);
if (!dbus_message_iter_init(msg, &iter))