summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/FileTransfer/IncomingJingleFileTransfer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp b/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
index a0cd47c..7c91c6a 100644
--- a/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
+++ b/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
@@ -176,10 +176,12 @@ void IncomingJingleFileTransfer::handleSessionTerminateReceived(boost::optional<
void IncomingJingleFileTransfer::checkHashAndTerminate() {
if (verifyData()) {
terminate(JinglePayload::Reason::Success);
+ setFinishedState(FileTransfer::State::Finished, FileTransferError());
}
else {
SWIFT_LOG(warning) << "Hash verification failed" << std::endl;
terminate(JinglePayload::Reason::MediaError);
+ setFinishedState(FileTransfer::State::Failed, FileTransferError());
}
}