mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Remove some superfluous call to the progress callback
This commit is contained in:
parent
5bdaf83c67
commit
30548b26e3
@ -648,8 +648,10 @@ static void ne_notify_status_cb (void *userdata, ne_session_status status,
|
||||
{
|
||||
struct transfer_context *tc = (struct transfer_context*) userdata;
|
||||
|
||||
if (_progresscb && (status == ne_status_sending || status == ne_status_recving))
|
||||
_progresscb(tc->clean_uri, CSYNC_NOTIFY_PROGRESS, info->sr.progress, info->sr.total, dav_session.userdata);
|
||||
if (_progresscb && (status == ne_status_sending || status == ne_status_recving)) {
|
||||
if (info->sr.total > 0)
|
||||
_progresscb(tc->clean_uri, CSYNC_NOTIFY_PROGRESS, info->sr.progress, info->sr.total, dav_session.userdata);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user