From 3925a7114aa0951f27934df98457de779e0037df Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 15 Jun 2011 20:12:17 +0000 Subject: [PATCH] removed debug ifdef git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4272 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/dbase/fimonitor.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/dbase/fimonitor.cc b/libretroshare/src/dbase/fimonitor.cc index 43eb380e8..a186020f5 100644 --- a/libretroshare/src/dbase/fimonitor.cc +++ b/libretroshare/src/dbase/fimonitor.cc @@ -48,7 +48,6 @@ //*********** //#define FIM_DEBUG 1 // ***********/ -#define FIM_DEBUG 1 FileIndexMonitor::FileIndexMonitor(CacheStrapper *cs, NotifyBase *cb_in,std::string cachedir, std::string pid,const std::string& config_dir) :CacheSource(RS_SERVICE_TYPE_FILE_INDEX, false, cs, cachedir), fi(pid), @@ -1079,6 +1078,12 @@ void FileIndexMonitor::setSharedDirectories(const std::list& d std::cerr << std::endl; #endif + checkeddirs.push_back(*it); + +#ifdef REMOVED_CODE + // this code has been removed because it prevents unmounted shared directories to stay in the list of shared files. It's better + // to keep them showing empty than removing them completely. + // /* check if dir exists before adding in */ // std::string path = (*it).filename; // if (!RsDirUtil::checkDirectory(path)) @@ -1090,8 +1095,9 @@ void FileIndexMonitor::setSharedDirectories(const std::list& d // } // else // { - checkeddirs.push_back(*it); +// checkeddirs.push_back(*it); // } +#endif } {