mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Thank you kindly, Melanie for a patch that adds a two-stage
check. It seems there may be a race. For me, this patch, just as it is here, fixes it.
This commit is contained in:
@@ -1403,7 +1403,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="remoteAvatar"></param>
|
||||
public void SendFullUpdateToOtherClient(ScenePresence remoteAvatar)
|
||||
{
|
||||
if (remoteAvatar == null || remoteAvatar.ControllingClient == null)
|
||||
// 2 stage check is needed.
|
||||
if (remoteAvatar == null)
|
||||
return;
|
||||
IClientAPI cl=remoteAvatar.ControllingClient;
|
||||
if(cl == null)
|
||||
return;
|
||||
if(m_appearance.Texture == null)
|
||||
return;
|
||||
|
||||
remoteAvatar.m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid,
|
||||
|
||||
Reference in New Issue
Block a user