mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 17:14:21 +08:00
obexd: Fixes a segfault when disconnected trying to send multiple files
This commit is contained in:
parent
0a2a27c3eb
commit
2edc33c430
@ -614,6 +614,8 @@ int session_send(struct session_data *session, const char *filename)
|
||||
|
||||
xfer = gw_obex_put_async(session->obex, session->name, NULL,
|
||||
session->size, -1, NULL);
|
||||
if (xfer == NULL)
|
||||
return -ENOTCONN;
|
||||
|
||||
message = dbus_message_new_method_call(session->agent_name,
|
||||
session->agent_path, AGENT_INTERFACE, "Progress");
|
||||
|
Loading…
Reference in New Issue
Block a user