From 11b60073ac168f55628a9385f1a598f2d8f33fd5 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 1 Feb 2014 11:59:43 +0000 Subject: [PATCH] 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 --- libretroshare/src/util/rsdir.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/util/rsdir.cc b/libretroshare/src/util/rsdir.cc index 847914b71..b23652b56 100644 --- a/libretroshare/src/util/rsdir.cc +++ b/libretroshare/src/util/rsdir.cc @@ -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)