diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-08-13 18:52:06 -0300 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-08-17 14:59:50 +0200 |
commit | e0b793af8ae1aaafdf7679069e2186008dd4858d (patch) | |
tree | 86f06e7f6c8dec8a71f67533166ac297322f9cbc | |
parent | 371b886babde22618e584db73319a7420f60ee88 (diff) | |
download | ofono-e0b793af8ae1aaafdf7679069e2186008dd4858d.tar.gz |
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().
-rw-r--r-- | dundee/device.c | 2 |
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) |