diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-06-24 17:14:02 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2013-06-29 21:10:21 +0200 |
commit | a96aa11bb5bb314c003f054f433f709f65c16290 (patch) | |
tree | 4031749e225c7791acdd3ef19f3144159ff010da /dundee/device.c | |
parent | d6a601f8d17968f1112da68f94c74ee69264ed76 (diff) | |
download | ofono-a96aa11bb5bb314c003f054f433f709f65c16290.tar.gz |
dundee: return error if there is a connection procedure ongoing
Diffstat (limited to 'dundee/device.c')
-rw-r--r-- | dundee/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dundee/device.c b/dundee/device.c index 2d84aaa9..3b32444b 100644 --- a/dundee/device.c +++ b/dundee/device.c @@ -456,6 +456,9 @@ static DBusMessage *set_property_active(struct dundee_device *device, if (dbus_message_iter_get_arg_type(var) != DBUS_TYPE_BOOLEAN) return __dundee_error_invalid_args(msg); + if (device->pending) + return __dundee_error_in_progress(msg); + dbus_message_iter_get_basic(var, &active); device->pending = dbus_message_ref(msg); |