diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-02-24 22:27:08 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-02-24 22:27:08 -0500 | 
| commit | ed73c8bf6357ca1e1a8009ead6b3b664e25c29c9 (patch) | |
| tree | 36a9cb02c09caed35696d35686948190b697cb7a /indra/llvfs | |
| parent | 2e7461277801dc0daa1e9ea509e079c980045f42 (diff) | |
| parent | 4c343c4506604b8dd0ac2d99a2b9661a1d382fc7 (diff) | |
pull latest changes from viewer-vs2010
Diffstat (limited to 'indra/llvfs')
| -rw-r--r-- | indra/llvfs/lldir.cpp | 13 | 
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 64556bcb4c..cb898e385f 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -101,10 +101,18 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask)  		{  			if (0 != LLFile::remove(fullpath))  			{ +				retry_count++;  				result = errno;  				llwarns << "Problem removing " << fullpath << " - errorcode: "  						<< result << " attempt " << retry_count << llendl; -				ms_sleep(1000); + +				if(retry_count >= 5) +				{ +					llwarns << "Failed to remove " << fullpath << llendl ; +					return count ; +				} + +				ms_sleep(100);  			}  			else  			{ @@ -113,8 +121,7 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask)  					llwarns << "Successfully removed " << fullpath << llendl;  				}  				break; -			} -			retry_count++; +			}			  		}  		count++;  	}  | 
