From 51eb8b8eaf437c098a65a73e8e186067fe08052b Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 14 Jun 2009 19:34:22 +0000 Subject: [PATCH] added removal of turtle handling when canceling/ending a file transfer. next step: Turtle download is now ready for gui integration git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1299 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftcontroller.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index 6d2a02ce6..68f9e4bf2 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -436,6 +436,8 @@ bool ftController::completeFile(std::string hash) mDataplex->removeTransferModule(hash_to_suppress) ; mDownloads.erase(it); + + mTurtle->stopMonitoringFileTunnels(hash_to_suppress) ; } /******* UNLOCKED ********/ @@ -889,10 +891,10 @@ bool ftController::FileCancel(std::string hash) #endif } - //fc->mState = ftFileControl::ERROR_COMPLETION; mDownloads.erase(mit); + mTurtle->stopMonitoringFileTunnels(hash) ; - IndicateConfigChanged(); /* completed transfer -> save */ + IndicateConfigChanged(); /* completed transfer -> save */ return true; }