prevent Asset fetch when not logged in. in LibreMetaverse.

This commit is contained in:
alexiscatnip
2022-02-06 13:27:21 +08:00
parent 67b2ff956b
commit 413dffc7cf
@@ -638,6 +638,14 @@ namespace OpenMetaverse
return;
}
// Guard clause:
// if the sound is not cached, and we are not connected,
// then we skip any network download.
if (!Client.Network.Connected)
{
return;
}
// If ViewerAsset capability exists, use that, if not, fallback to UDP (which is obsoleted on Second Life.)
if (Client.Network.CurrentSim.Caps != null
&& Client.Network.CurrentSim.Caps.CapabilityURI("ViewerAsset") != null)