mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 06:42:19 -04: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/branches/v0.5.5@7076 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6ac4086732
commit
11b60073ac
1 changed files with 2 additions and 2 deletions
|
@ -911,9 +911,9 @@ bool RsDirUtil::renameFile(const std::string& from, const std::string& to)
|
||||||
/* set errno? */
|
/* set errno? */
|
||||||
return false ;
|
return false ;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
Sleep(100000); /* us */
|
Sleep(200); /* 200 milliseconds */
|
||||||
#else
|
#else
|
||||||
usleep(100000); /* us */
|
usleep(100000); /* 100000 microseconds */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (loops >= 30)
|
if (loops >= 30)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue