* Allow an exception generated in ProcessOutPacket to travel up the stack

* It is dealt with correctly further up, at which point the user is also notified and the failure recorded as a statistic
0.6.0-stable
Justin Clarke Casey 2008-08-22 21:41:05 +00:00
parent d972d22788
commit f0ffbf5b38
1 changed files with 17 additions and 28 deletions

View File

@ -745,8 +745,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
// Actually make the byte array and send it
try
{
byte[] sendbuffer = packet.ToBytes();
if (packet.Header.Zerocoded)
@ -768,14 +766,5 @@ namespace OpenSim.Region.ClientStack.LindenUDP
PacketPool.Instance.ReturnPacket(packet);
}
catch (Exception e)
{
m_log.Warn("[client]: " +
"PacketHandler:ProcessOutPacket() - WARNING: Socket "+
"exception occurred - killing thread");
m_log.Error(e.ToString());
m_Client.Close(true);
}
}
}
}