From 6919d3bd7f862a93c634725f4a53875567f72777 Mon Sep 17 00:00:00 2001 From: ewensun Date: Thu, 18 Dec 2008 14:27:22 +0000 Subject: [PATCH] clean up completed cache files automatically git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@891 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftcontroller.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index e5bfe532f..2af200ebc 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -257,7 +257,10 @@ bool ftController::completeFile(std::string hash) } /* switch map */ - mCompleted[fc->mHash] = *fc; + if (fc->mFlags & RS_FILE_HINTS_CACHE) /* clean up completed cache files automatically */ + { + mCompleted[fc->mHash] = *fc; + } /* for extralist additions */