MAINT-5976: No sleep for mac on shutdown.

meow-7.2.2
rider 2016-01-07 09:20:11 -08:00
parent 7692e9554d
commit cdde5d0f03
1 changed files with 2 additions and 0 deletions

View File

@ -1160,11 +1160,13 @@ bool LLVivoxVoiceClient::breakVoiceConnection(bool corowait)
else
{ // If we are not doing a corowait then we must sleep until the connector has responded
// otherwise we may very well close the socket too early.
#ifdef LL_WINDOWS
int count = 0;
while (!mShutdownComplete && 10 > count++)
{
_sleep(1000);
}
#endif
}
closeSocket(); // Need to do this now -- bad things happen if the destructor does it later.