* minor: Stop friendship termination crashing the client thread if the friend to be terminated could not be found
parent
87eff82b28
commit
1e365df495
|
@ -308,7 +308,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
{
|
{
|
||||||
m_log.Info("[UDPSERVER]: UDP Object disposed. No need to worry about this if you're restarting the simulator.");
|
m_log.Info("[UDPSERVER]: UDP Object disposed. No need to worry about this if you're restarting the simulator.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -671,6 +671,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
|
||||||
{
|
{
|
||||||
// wasn't sent, so ex-friend wasn't around on this region-server. Fetch info and try to send
|
// wasn't sent, so ex-friend wasn't around on this region-server. Fetch info and try to send
|
||||||
UserAgentData data = m_initialScene.CommsManager.UserService.GetAgentByUUID(exfriendID);
|
UserAgentData data = m_initialScene.CommsManager.UserService.GetAgentByUUID(exfriendID);
|
||||||
|
|
||||||
|
if (null == data)
|
||||||
|
break;
|
||||||
|
|
||||||
if (!data.AgentOnline)
|
if (!data.AgentOnline)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[FRIEND]: {0} is offline, so not sending TerminateFriend", exfriendID);
|
m_log.DebugFormat("[FRIEND]: {0} is offline, so not sending TerminateFriend", exfriendID);
|
||||||
|
|
Loading…
Reference in New Issue