mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Started to cleanup/close down childagent connections when a user teleports. As the client will not close old childagent connections without being told explicitly to do so by each region the connection is to. Currently only implemented in standalone mode. ( the TellRegionToCloseChildConnection( ) in OGS1GridServices.cs needs implementing for grid mode, and the inter region .net remoting added for the new messages).
hopefully fixed the echo bug in chatmodule.
This commit is contained in:
@@ -38,6 +38,8 @@ namespace OpenSim.Framework
|
||||
|
||||
public delegate void AcknowledgeAgentCross(ulong regionHandle, LLUUID agentID);
|
||||
|
||||
public delegate void CloseAgentConnection(ulong regionHandle, LLUUID agentID);
|
||||
|
||||
public interface IRegionCommsListener
|
||||
{
|
||||
event ExpectUserDelegate OnExpectUser;
|
||||
@@ -45,5 +47,6 @@ namespace OpenSim.Framework
|
||||
event AgentCrossing OnAvatarCrossingIntoRegion;
|
||||
event AcknowledgeAgentCross OnAcknowledgeAgentCrossed;
|
||||
event UpdateNeighbours OnNeighboursUpdate;
|
||||
event CloseAgentConnection OnCloseAgentConnection;
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,7 @@ namespace OpenSim.Framework
|
||||
public event AgentCrossing OnAvatarCrossingIntoRegion;
|
||||
public event UpdateNeighbours OnNeighboursUpdate;
|
||||
public event AcknowledgeAgentCross OnAcknowledgeAgentCrossed;
|
||||
public event CloseAgentConnection OnCloseAgentConnection;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -76,6 +77,14 @@ namespace OpenSim.Framework
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
|
||||
{
|
||||
if (OnCloseAgentConnection != null)
|
||||
{
|
||||
OnCloseAgentConnection(regionHandle, agentID);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user