summaryrefslogtreecommitdiffstats
path: root/dundee
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-08-13 18:52:06 -0300
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-17 14:59:50 +0200
commite0b793af8ae1aaafdf7679069e2186008dd4858d (patch)
tree86f06e7f6c8dec8a71f67533166ac297322f9cbc /dundee
parent371b886babde22618e584db73319a7420f60ee88 (diff)
downloadofono-e0b793af8ae1aaafdf7679069e2186008dd4858d.tar.bz2
dundee: disconnect bluetooth link in case dial fails
If the ATD*99# dial fails for some reason, NO CARRIER, for example, we need to disconnect the bluetooth link and do further clean up on disconnect_callback().
Diffstat (limited to 'dundee')
-rw-r--r--dundee/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dundee/device.c b/dundee/device.c
index e921a2a9..e5f64247 100644
--- a/dundee/device.c
+++ b/dundee/device.c
@@ -385,6 +385,8 @@ err:
__ofono_dbus_pending_reply(&device->pending,
__dundee_error_failed(device->pending));
device->pending = NULL;
+
+ device->driver->disconnect(device, disconnect_callback, device);
}
static int device_dial_setup(struct dundee_device *device, int fd)