telepathy-qt: OutgoingFileTransferChannel::doTransfer(): Fixed infinity offset skip.

Alexandr Akulich kaffeine at kemper.freedesktop.org
Sat Apr 23 08:33:21 UTC 2016


Module: telepathy-qt
Branch: master
Commit: 4549b92e6f50a667245967fbb4680637aa5a1d23
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=4549b92e6f50a667245967fbb4680637aa5a1d23

Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Wed Feb 17 14:29:42 2016 +0500

OutgoingFileTransferChannel::doTransfer(): Fixed infinity offset skip.

---

 TelepathyQt/outgoing-file-transfer-channel.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/TelepathyQt/outgoing-file-transfer-channel.cpp b/TelepathyQt/outgoing-file-transfer-channel.cpp
index 52fa296..5e850df 100644
--- a/TelepathyQt/outgoing-file-transfer-channel.cpp
+++ b/TelepathyQt/outgoing-file-transfer-channel.cpp
@@ -314,6 +314,7 @@ void OutgoingFileTransferChannel::doTransfer()
         qint64 skip = (qint64) qMin(initialOffset() - mPriv->pos,
                 (qulonglong) len);
 
+        mPriv->pos += skip;
         debug() << "skipping" << skip << "bytes";
         if (skip == len) {
             // nothing to write, all data read was skipped



More information about the telepathy-commits mailing list