Fix background inventory loading (Viewer 3) so it won't lag out the sim

This commit is contained in:
Melanie
2012-08-24 23:48:01 +02:00
parent c1a0c7fad1
commit 7e17f4296e
3 changed files with 111 additions and 55 deletions

View File

@@ -51,7 +51,8 @@ namespace OpenSim.Framework.Servers.HttpServer
public enum EventType : int
{
Normal = 0,
LslHttp = 1
LslHttp = 1,
Inventory = 2
}
public PollServiceEventArgs(

View File

@@ -231,7 +231,8 @@ namespace OpenSim.Framework.Servers.HttpServer
{
if (m_running)
{
if (req.PollServiceArgs.Type == PollServiceEventArgs.EventType.LslHttp)
if (req.PollServiceArgs.Type == PollServiceEventArgs.EventType.LslHttp ||
req.PollServiceArgs.Type == PollServiceEventArgs.EventType.Inventory)
{
m_requests.Enqueue(req);
}