suppressed possible un-necessary infinite wait

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2405 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-02-23 21:54:35 +00:00
parent 315881493d
commit 0d67e991e3

View File

@ -233,12 +233,12 @@ bool ExtAddrFinder::hasValidIP(struct sockaddr_in *addr)
void ExtAddrFinder::reset()
{
while(*_searching)
#ifdef WIN32
Sleep(1000) ;
#else
sleep(1) ;
#endif
// while(*_searching)
//#ifdef WIN32
// Sleep(1000) ;
//#else
// sleep(1) ;
//#endif
RsStackMutex mut(_addrMtx) ;
@ -252,12 +252,12 @@ ExtAddrFinder::~ExtAddrFinder()
#ifdef EXTADDRSEARCH_DEBUG
std::cerr << "ExtAddrFinder: Deleting ExtAddrFinder." << std::endl ;
#endif
while(*_searching)
#ifdef WIN32
Sleep(1000) ;
#else
sleep(1) ;
#endif
// while(*_searching)
//#ifdef WIN32
// Sleep(1000) ;
//#else
// sleep(1) ;
//#endif
RsStackMutex mut(_addrMtx) ;