Skip to content
Snippets Groups Projects
Commit 6f2879f4 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

data_transfer: do not emit finished if not finished

Change-Id: I5e2231c4550d27a6b4ad8ae8b728227e12496dc1
GitLab: #323
parent fc9f919f
Branches
Tags
No related merge requests found
......@@ -345,6 +345,9 @@ private:
JAMI_DBG() << "FTP#" << getId() << ": sent " << info_.bytesProgress << " bytes";
if (internalCompletionCb_)
internalCompletionCb_(info_.path);
if (info_.bytesProgress != info_.totalSize)
emit(DRing::DataTransferEventCode::closed_by_peer);
else
emit(DRing::DataTransferEventCode::finished);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment