mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-02 00:24:25 +08:00
obexd: Emit TransferStarted signal only if stream start is success
Even if obex_put_stream_start() fails TransferStarted signal will be emitted where as transfer start is actually failed.
This commit is contained in:
parent
936153406b
commit
1e9bca91cc
@ -154,12 +154,15 @@ skip_auth:
|
||||
|
||||
path = g_build_filename(folder, name, NULL);
|
||||
|
||||
manager_emit_transfer_started(os);
|
||||
|
||||
err = obex_put_stream_start(os, path);
|
||||
|
||||
g_free(path);
|
||||
|
||||
if (err < 0)
|
||||
goto failed;
|
||||
|
||||
manager_emit_transfer_started(os);
|
||||
|
||||
failed:
|
||||
g_free(folder);
|
||||
g_free(name);
|
||||
|
Loading…
Reference in New Issue
Block a user