dont request a workjob if we can see there is nothing to do
parent
8f509af1f4
commit
99c3b61bd9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue