dont request a workjob if we can see there is nothing to do

LSLKeyTest
UbitUmarov 2016-08-24 06:20:04 +01:00
parent 8f509af1f4
commit 99c3b61bd9
1 changed files with 18 additions and 12 deletions

View File

@ -123,6 +123,11 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer
{
double now = Util.GetTimeStampMS();
if(now - lastTimeTick > 1750.0)
{
if(Transfers.Count == 0 && NewFiles.Count == 0)
lastTimeTick = now;
else
{
inTimeTick = true;
@ -140,6 +145,7 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer
"XferTimeTick");
}
}
}
Monitor.Exit(timeTickLock);
}
}