MAINT-8042 Crash in LLViewerRegion::capabilitiesReceived()

Wed, 06 Dec 2017 17:48:01 +0200

author
Mnikolenko Productengine<mnikolenko@productengine.com>
date
Wed, 06 Dec 2017 17:48:01 +0200
changeset 53555
e0cb08e39dd7
parent 53554
24e35bc49c23
child 53556
728a9c35d025

MAINT-8042 Crash in LLViewerRegion::capabilitiesReceived()

indra/newview/llvoicevivox.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llvoicevivox.cpp	Thu Dec 07 10:19:18 2017 +0100
     1.2 +++ b/indra/newview/llvoicevivox.cpp	Wed Dec 06 17:48:01 2017 +0200
     1.3 @@ -875,13 +875,8 @@
     1.4  bool LLVivoxVoiceClient::provisionVoiceAccount()
     1.5  {
     1.6      LL_INFOS("Voice") << "Provisioning voice account." << LL_ENDL;
     1.7 -    while (!gAgent.getRegion())
     1.8 -    {
     1.9 -        // *TODO* Set up a call back on agent that sends a message to a pump we can use to wake up.
    1.10 -        llcoro::suspend();
    1.11 -    }
    1.12 -
    1.13 -    while (!gAgent.getRegion()->capabilitiesReceived())
    1.14 +
    1.15 +    while (!gAgent.getRegion() || !gAgent.getRegion()->capabilitiesReceived())
    1.16      {
    1.17          // *TODO* Pump a message for wake up.
    1.18          llcoro::suspend();

mercurial