mirror of git://git.sysmocom.de/ofono
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().
This commit is contained in:
parent
371b886bab
commit
e0b793af8a
|
@ -385,6 +385,8 @@ err:
|
||||||
__ofono_dbus_pending_reply(&device->pending,
|
__ofono_dbus_pending_reply(&device->pending,
|
||||||
__dundee_error_failed(device->pending));
|
__dundee_error_failed(device->pending));
|
||||||
device->pending = NULL;
|
device->pending = NULL;
|
||||||
|
|
||||||
|
device->driver->disconnect(device, disconnect_callback, device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int device_dial_setup(struct dundee_device *device, int fd)
|
static int device_dial_setup(struct dundee_device *device, int fd)
|
||||||
|
|
Loading…
Reference in New Issue