fixed stupid (and very old!) mistake causing 100 seconds hang ups on windows when file rename fails.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7077 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-02-01 12:00:05 +00:00
parent 6855a7ac98
commit 8bb90bb9f8

View File

@ -911,9 +911,9 @@ bool RsDirUtil::renameFile(const std::string& from, const std::string& to)
/* set errno? */
return false ;
#ifdef WIN32
Sleep(100000); /* us */
Sleep(200); /* 200 milliseconds */
#else
usleep(100000); /* us */
usleep(100000); /* 100000 microseconds */
#endif
if (loops >= 30)