From 5ffd12ff9f46b8a28977c1fc575c86eac2fdec59 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 20 Aug 2010 14:48:48 +0200 Subject: stk: Fix error messsage from select item method call --- src/stk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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, -- cgit v1.2.3