cosmetics, rename a few vars, etc

This commit is contained in:
UbitUmarov
2020-03-02 01:32:33 +00:00
parent 904553cdb3
commit 97cb6254ef
7 changed files with 40 additions and 37 deletions

View File

@@ -257,39 +257,43 @@ namespace OpenSim.Region.ClientStack.Linden
{
m_module = module;
HasEvents = (x, y) => { lock (responses) return responses.ContainsKey(x); };
HasEvents = (requestID, y) =>
{
lock (responses)
return responses.ContainsKey(requestID);
};
Drop = (x, y) =>
Drop = (requestID, y) =>
{
lock (responses)
{
responses.Remove(x);
responses.Remove(requestID);
lock(dropedResponses)
dropedResponses.Add(x);
dropedResponses.Add(requestID);
}
};
GetEvents = (x, y) =>
GetEvents = (requestID, y) =>
{
lock (responses)
{
try
{
return responses[x];
return responses[requestID];
}
finally
{
responses.Remove(x);
responses.Remove(requestID);
}
}
};
Request = (x, y) =>
Request = (requestID, request) =>
{
APollRequest reqinfo = new APollRequest();
reqinfo.thepoll = this;
reqinfo.reqID = x;
reqinfo.request = y;
reqinfo.reqID = requestID;
reqinfo.request = request;
m_queue.Add(reqinfo);
};
@@ -377,7 +381,7 @@ namespace OpenSim.Region.ClientStack.Linden
// Register this as a poll service
PollServiceInventoryEventArgs args = new PollServiceInventoryEventArgs(this, capUrl, agentID);
args.Type = PollServiceEventArgs.EventType.Inventory;
//args.Type = PollServiceEventArgs.EventType.Inventory;
caps.RegisterPollHandler(capName, args);
}