* Read scene_throttle_bps from the config file and use it

* Minor formatting cleanup
This commit is contained in:
John Hurliman
2009-10-14 11:52:48 -07:00
parent 4b5a2f8c02
commit c033477d2f
2 changed files with 5 additions and 10 deletions

View File

@@ -184,7 +184,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
int sent;
bool imageDone = image.SendPackets(m_client, packetsToSend - packetsSent, out sent);
packetsSent += sent;
// If the send is complete, destroy any knowledge of this transfer
@@ -234,20 +233,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
image.PriorityQueueHandle = null;
lock (m_syncRoot)
try
{
m_priorityQueue.Add(ref image.PriorityQueueHandle, image);
}
try { m_priorityQueue.Add(ref image.PriorityQueueHandle, image); }
catch (Exception) { }
}
void RemoveImageFromQueue(J2KImage image)
{
lock (m_syncRoot)
try
{
m_priorityQueue.Delete(image.PriorityQueueHandle);
}
try { m_priorityQueue.Delete(image.PriorityQueueHandle); }
catch (Exception) { }
}