mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
prevent Asset fetch when not logged in. in LibreMetaverse.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user