aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs19
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>