mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
* minor: remove warnings (the code cleaners strike again)
This commit is contained in:
@@ -783,8 +783,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
ClientLoop();
|
||||
}
|
||||
}
|
||||
//Todo set as Generic Exception again.
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
if (e is ThreadAbortException)
|
||||
@@ -794,7 +793,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
StatsManager.SimExtraStats.AddAbnormalClientThreadTermination();
|
||||
|
||||
// Don't let a failure in an individual client thread crash the whole sim.
|
||||
m_log.ErrorFormat("[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e);
|
||||
m_log.ErrorFormat(
|
||||
"[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -762,7 +762,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
{
|
||||
Packet packet = item.Packet;
|
||||
|
||||
|
||||
// Assign sequence number here to prevent out of order packets
|
||||
if (packet.Header.Sequence == 0)
|
||||
{
|
||||
|
||||
@@ -413,10 +413,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static int ScaleThrottle(int value, int curmax, int newmax)
|
||||
{
|
||||
return (value / curmax) * newmax;
|
||||
return (int)((value / (float)curmax) * newmax);
|
||||
}
|
||||
|
||||
public byte[] GetThrottlesPacked(float multiplier)
|
||||
|
||||
Reference in New Issue
Block a user