summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-20 14:48:48 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-08-20 14:48:48 +0200
commit5ffd12ff9f46b8a28977c1fc575c86eac2fdec59 (patch)
tree3aee3d9036730f0bbf977de75e34ce25cf746c4d /src
parentdf5d691c39b0ff41d3d98a01db078f7157eb0250 (diff)
stk: Fix error messsage from select item method call
Diffstat (limited to 'src')
-rw-r--r--src/stk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stk.c b/src/stk.c
index ce71075e..dd9f4533 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -608,11 +608,11 @@ static DBusMessage *stk_select_item(DBusConnection *conn,
DBG("");
- if (stk->pending)
+ if (stk->pending || stk->session_agent)
return __ofono_error_busy(msg);
- if (stk->session_agent || !menu)
- return __ofono_error_busy(msg);
+ if (!menu)
+ return __ofono_error_not_supported(msg);
if (dbus_message_get_args(msg, NULL,
DBUS_TYPE_BYTE, &selection,