Spawn a threadlet upon receiving requests to close agents. The operation may take too long, and we don't need to keep the caller waiting.
parent
32a3f330ed
commit
52f88f5739
|
@ -300,7 +300,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
if (s.RegionInfo.RegionID == destination.RegionID)
|
if (s.RegionInfo.RegionID == destination.RegionID)
|
||||||
{
|
{
|
||||||
//m_log.Debug("[LOCAL COMMS]: Found region to SendCloseAgent");
|
//m_log.Debug("[LOCAL COMMS]: Found region to SendCloseAgent");
|
||||||
return s.IncomingCloseAgent(id);
|
// Let's spawn a threadlet right here, because this may take
|
||||||
|
// a while
|
||||||
|
Util.FireAndForget(delegate { s.IncomingCloseAgent(id); });
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//m_log.Debug("[LOCAL COMMS]: region not found in SendCloseAgent");
|
//m_log.Debug("[LOCAL COMMS]: region not found in SendCloseAgent");
|
||||||
|
|
Loading…
Reference in New Issue