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.

viewer-2-initial-appearance
Diva Canto 2011-01-07 10:04:39 -08:00
parent 32a3f330ed
commit 52f88f5739
1 changed files with 4 additions and 1 deletions

View File

@ -300,7 +300,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
if (s.RegionInfo.RegionID == destination.RegionID)
{
//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");