Ignore nullreferenceexception in removeclient. The avatar is already gone.

afrisby
Brian McBee 2007-11-25 04:33:18 +00:00
parent 6ed34cc27e
commit 21ce2b0979
1 changed files with 5 additions and 0 deletions

View File

@ -934,6 +934,11 @@ namespace OpenSim.Region.Environment.Scenes
{ {
avatar.Close(); avatar.Close();
} }
catch (System.NullReferenceException NE)
{
//We can safely ignore null reference exceptions. It means the avatar are dead and cleaned up anyway.
}
catch (Exception e) catch (Exception e)
{ {
MainLog.Instance.Error("Scene.cs:RemoveClient exception: " + e.ToString()); MainLog.Instance.Error("Scene.cs:RemoveClient exception: " + e.ToString());