mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 15:04:34 +08:00
obexd: Dealing with folder listings
When the object size is unknown ends the transfer as soon as the first packet arrives.
This commit is contained in:
parent
91b2a8d879
commit
9929152403
@ -1000,6 +1000,9 @@ static void get_xfer_progress(GwObexXfer *xfer, gpointer user_data)
|
||||
session->filled = 0;
|
||||
}
|
||||
|
||||
if (session->size == -1)
|
||||
goto complete;
|
||||
|
||||
if (session->transferred == session->size)
|
||||
goto complete;
|
||||
|
||||
|
@ -46,8 +46,8 @@ struct session_data {
|
||||
GwObexXfer *xfer;
|
||||
char buffer[4096];
|
||||
int filled;
|
||||
uint64_t size;
|
||||
uint64_t transferred;
|
||||
ssize_t size;
|
||||
size_t transferred;
|
||||
gchar *filename;
|
||||
gchar *agent_name;
|
||||
gchar *agent_path;
|
||||
|
Loading…
Reference in New Issue
Block a user