mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
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:
parent
6855a7ac98
commit
8bb90bb9f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user