diff options
author | Justin Clarke Casey | 2008-02-13 00:52:49 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-13 00:52:49 +0000 |
commit | 1677bde48027f13ed986a865951f3e94fe3499b7 (patch) | |
tree | 716bd3eef7bea295efff79050160694f50aab934 /OpenSim/Framework/Communications/Cache | |
parent | * Refactor: Move last commit's refactor back to AgentAssetTransactionsManager (diff) | |
download | opensim-SC_OLD-1677bde48027f13ed986a865951f3e94fe3499b7.zip opensim-SC_OLD-1677bde48027f13ed986a865951f3e94fe3499b7.tar.gz opensim-SC_OLD-1677bde48027f13ed986a865951f3e94fe3499b7.tar.bz2 opensim-SC_OLD-1677bde48027f13ed986a865951f3e94fe3499b7.tar.xz |
* Clean up the agent's asset transactions when it is removed from the scene
* This may or may not help with the memory leak, need to assess
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs index 48b2563..82fe4c0 100644 --- a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs +++ b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs | |||
@@ -78,9 +78,24 @@ namespace OpenSim.Framework.Communications.Cache | |||
78 | = new AgentAssetTransactions(userID, this, m_dumpAssetsToFile); | 78 | = new AgentAssetTransactions(userID, this, m_dumpAssetsToFile); |
79 | AgentTransactions.Add(userID, transactions); | 79 | AgentTransactions.Add(userID, transactions); |
80 | } | 80 | } |
81 | } | 81 | |
82 | return AgentTransactions[userID]; | ||
83 | } | ||
84 | } | ||
85 | |||
86 | /// <summary> | ||
87 | /// Remove the given agent asset transactions. This should be called when a client is departing | ||
88 | /// from a scene (and hence won't be making any more transactions here). | ||
89 | /// </summary> | ||
90 | /// <param name="userID"></param> | ||
91 | public void RemoveAgentAssetTransactions(LLUUID userID) | ||
92 | { | ||
93 | m_log.DebugFormat("Removing agent asset transactions structure for agent {0}", userID); | ||
82 | 94 | ||
83 | return AgentTransactions[userID]; | 95 | lock (AgentTransactions) |
96 | { | ||
97 | AgentTransactions.Remove(userID); | ||
98 | } | ||
84 | } | 99 | } |
85 | 100 | ||
86 | /// <summary> | 101 | /// <summary> |