mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Remove some superfluous call to the progress callback
This commit is contained in:
parent
5bdaf83c67
commit
30548b26e3
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue