dont bother another thread to try to send if there is no one to listen

LSLKeyTest
UbitUmarov 2015-12-16 23:54:48 +00:00
parent 19c551e815
commit 3505ab759d
1 changed files with 10 additions and 2 deletions

View File

@ -3896,8 +3896,16 @@ namespace OpenSim.Region.Framework.Scenes
m_scene.EventManager.TriggerSignificantClientMovement(this); m_scene.EventManager.TriggerSignificantClientMovement(this);
} }
if(!childUpdatesBusy) if(childUpdatesBusy)
{ return;
//possible KnownRegionHandles always contains current region and this check is not needed
int minhandles = 0;
if(KnownRegionHandles.Contains(RegionHandle))
minhandles++;
if(KnownRegionHandles.Count > minhandles)
{
int tdiff = Util.EnvironmentTickCountSubtract(lastChildUpdatesTime); int tdiff = Util.EnvironmentTickCountSubtract(lastChildUpdatesTime);
if(tdiff > CHILDUPDATES_TIME) if(tdiff > CHILDUPDATES_TIME)
{ {