added a timeout paramenter to PollServiceEventArgs, so each type can define it's timeout

This commit is contained in:
UbitUmarov
2012-07-04 17:40:02 +01:00
parent e533eef962
commit 02cb0bf80a
4 changed files with 8 additions and 5 deletions

View File

@@ -361,7 +361,7 @@ namespace OpenSim.Region.ClientStack.Linden
// This will persist this beyond the expiry of the caps handlers
MainServer.Instance.AddPollServiceHTTPHandler(
capsBase + EventQueueGetUUID.ToString() + "/",
new PollServiceEventArgs(null, HasEvents, GetEvents, NoEvents, agentID));
new PollServiceEventArgs(null, HasEvents, GetEvents, NoEvents, agentID,1000)); // 1 sec timeout
Random rnd = new Random(Environment.TickCount);
lock (m_ids)