mirror of git://git.sysmocom.de/ofono
call-settings: Check if ussd is busy
This commit is contained in:
parent
e24d1d1285
commit
58b5303c08
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue