diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 9aa27ec..bb2d270 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | |||
@@ -131,7 +131,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
131 | userSettings.ClientThrottleMultipler); | 131 | userSettings.ClientThrottleMultipler); |
132 | 132 | ||
133 | throttleTimer = new Timer((int) (throttletimems/throttleTimeDivisor)); | 133 | throttleTimer = new Timer((int) (throttletimems/throttleTimeDivisor)); |
134 | throttleTimer.Elapsed += new ElapsedEventHandler(ThrottleTimerElapsed); | 134 | throttleTimer.Elapsed += ThrottleTimerElapsed; |
135 | throttleTimer.Start(); | 135 | throttleTimer.Start(); |
136 | 136 | ||
137 | // TIMERS needed for this | 137 | // TIMERS needed for this |
@@ -256,9 +256,28 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
256 | } | 256 | } |
257 | } | 257 | } |
258 | 258 | ||
259 | public void WipeClean() | ||
260 | { | ||
261 | m_log.Info("[PACKETQUEUE] Wiping Packet Queues Clean"); | ||
262 | lock(this) | ||
263 | { | ||
264 | ResendOutgoingPacketQueue.Clear(); | ||
265 | LandOutgoingPacketQueue.Clear(); | ||
266 | WindOutgoingPacketQueue.Clear(); | ||
267 | CloudOutgoingPacketQueue.Clear(); | ||
268 | TaskOutgoingPacketQueue.Clear(); | ||
269 | TaskLowpriorityPacketQueue.Clear(); | ||
270 | TextureOutgoingPacketQueue.Clear(); | ||
271 | AssetOutgoingPacketQueue.Clear(); | ||
272 | SendQueue.Clear(); | ||
273 | } | ||
274 | } | ||
275 | |||
259 | public void Close() | 276 | public void Close() |
260 | { | 277 | { |
278 | m_log.Info("[PACKETQUEUE] Close called"); | ||
261 | Flush(); | 279 | Flush(); |
280 | WipeClean(); // I'm sure there's a dirty joke in here somewhere. -AFrisby | ||
262 | 281 | ||
263 | m_enabled = false; | 282 | m_enabled = false; |
264 | throttleTimer.Stop(); | 283 | throttleTimer.Stop(); |