From 0d67e991e3b187ad2f48a2e5391efacefd51139d Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 23 Feb 2010 21:54:35 +0000 Subject: [PATCH] suppressed possible un-necessary infinite wait git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2405 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/tcponudp/extaddrfinder.cc | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libretroshare/src/tcponudp/extaddrfinder.cc b/libretroshare/src/tcponudp/extaddrfinder.cc index 649be1e98..9544b9391 100644 --- a/libretroshare/src/tcponudp/extaddrfinder.cc +++ b/libretroshare/src/tcponudp/extaddrfinder.cc @@ -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) ;