aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs
diff options
context:
space:
mode:
authorlbsa712008-01-03 14:01:53 +0000
committerlbsa712008-01-03 14:01:53 +0000
commit7b062cefa22a5b67e124e478345751bab7a18093 (patch)
tree0b862bdb288d7afe513c3985f233c2b65861c9c6 /OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs
parentSet svn:eol-style. (diff)
downloadopensim-SC_OLD-7b062cefa22a5b67e124e478345751bab7a18093.zip
opensim-SC_OLD-7b062cefa22a5b67e124e478345751bab7a18093.tar.gz
opensim-SC_OLD-7b062cefa22a5b67e124e478345751bab7a18093.tar.bz2
opensim-SC_OLD-7b062cefa22a5b67e124e478345751bab7a18093.tar.xz
* Added removal of TextureSenders and UserTextureDownloadService on agent leaving region.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs
index 9a5b362..5e768ee 100644
--- a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs
+++ b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs
@@ -94,5 +94,18 @@ namespace OpenSim.Region.Environment.Modules
94 m_sharedSendersQueue.Enqueue(textureSender); 94 m_sharedSendersQueue.Enqueue(textureSender);
95 } 95 }
96 } 96 }
97
98 internal void Close()
99 {
100 lock (m_textureSenders)
101 {
102 foreach( TextureSender textureSender in m_textureSenders.Values )
103 {
104 textureSender.Cancel = true;
105 }
106
107 m_textureSenders.Clear();
108 }
109 }
97 } 110 }
98} \ No newline at end of file 111}