Wait a bit longer for new scene presences to aid tps into laggy regions

avinationmerge
Melanie 2012-09-14 00:12:41 +02:00
parent 52d74cf274
commit e1e9855ede
1 changed files with 1 additions and 1 deletions

View File

@ -4274,7 +4274,7 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name='agentID'></param> /// <param name='agentID'></param>
protected virtual ScenePresence WaitGetScenePresence(UUID agentID) protected virtual ScenePresence WaitGetScenePresence(UUID agentID)
{ {
int ntimes = 20; int ntimes = 30;
ScenePresence sp = null; ScenePresence sp = null;
while ((sp = GetScenePresence(agentID)) == null && (ntimes-- > 0)) while ((sp = GetScenePresence(agentID)) == null && (ntimes-- > 0))
Thread.Sleep(1000); Thread.Sleep(1000);