Make WaitGetScenePresence wait for up to 20 seconds

avinationmerge
Melanie 2012-08-03 16:03:40 +02:00
parent b8ba224b4f
commit 83deb46032
1 changed files with 1 additions and 1 deletions

View File

@ -4255,7 +4255,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 = 10; int ntimes = 20;
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);