diff options
author | UbitUmarov | 2015-12-16 23:54:48 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-16 23:54:48 +0000 |
commit | 3505ab759d61b511f12485541c36cb8aac8e4736 (patch) | |
tree | a3c5a06fd1cae68297e4bee460d6721c86f3e783 | |
parent | fix test: scene update needs to run after the delay (diff) | |
download | opensim-SC_OLD-3505ab759d61b511f12485541c36cb8aac8e4736.zip opensim-SC_OLD-3505ab759d61b511f12485541c36cb8aac8e4736.tar.gz opensim-SC_OLD-3505ab759d61b511f12485541c36cb8aac8e4736.tar.bz2 opensim-SC_OLD-3505ab759d61b511f12485541c36cb8aac8e4736.tar.xz |
dont bother another thread to try to send if there is no one to listen
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d870830..f5ca3ef 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3896,8 +3896,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
3896 | m_scene.EventManager.TriggerSignificantClientMovement(this); | 3896 | m_scene.EventManager.TriggerSignificantClientMovement(this); |
3897 | } | 3897 | } |
3898 | 3898 | ||
3899 | if(!childUpdatesBusy) | 3899 | if(childUpdatesBusy) |
3900 | { | 3900 | return; |
3901 | |||
3902 | //possible KnownRegionHandles always contains current region and this check is not needed | ||
3903 | int minhandles = 0; | ||
3904 | if(KnownRegionHandles.Contains(RegionHandle)) | ||
3905 | minhandles++; | ||
3906 | |||
3907 | if(KnownRegionHandles.Count > minhandles) | ||
3908 | { | ||
3901 | int tdiff = Util.EnvironmentTickCountSubtract(lastChildUpdatesTime); | 3909 | int tdiff = Util.EnvironmentTickCountSubtract(lastChildUpdatesTime); |
3902 | if(tdiff > CHILDUPDATES_TIME) | 3910 | if(tdiff > CHILDUPDATES_TIME) |
3903 | { | 3911 | { |