[telepathy-qt4/master] IncomingFileTransferChannel: Invalidate channel when initialOffset bigger than what we asked for.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Sep 23 06:17:01 PDT 2009


---
 TelepathyQt4/incoming-file-transfer-channel.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/incoming-file-transfer-channel.cpp b/TelepathyQt4/incoming-file-transfer-channel.cpp
index 0275ba2..c4b2baf 100644
--- a/TelepathyQt4/incoming-file-transfer-channel.cpp
+++ b/TelepathyQt4/incoming-file-transfer-channel.cpp
@@ -217,6 +217,8 @@ void IncomingFileTransferChannel::connectToHost()
         warning() << "InitialOffset bigger than requested offset, "
             "cancelling the transfer";
         cancel();
+        invalidate(TELEPATHY_QT4_ERROR_INCONSISTENT,
+                "Initial offset bigger than requested offset");
         return;
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list