Make WaitGetScenePresence wait for up to 20 seconds
parent
b8ba224b4f
commit
83deb46032
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue