From 1e5c0d4c411836f188d1e04dfb41919948f204d9 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 10 Mar 2023 13:38:40 +0000 Subject: [PATCH] minor cleanup --- .../ClientStack/Linden/UDP/OpenSimUDPBase.cs | 44 +------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index 96e0d5274a..8fc8eb4ea7 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs @@ -395,7 +395,7 @@ namespace OpenMetaverse // buffer buffer.DataLength = m_udpSocket.EndReceiveFrom(iar, ref buffer.RemoteEndPoint); - if(!IsRunningInbound) + if (!IsRunningInbound) return; UdpReceives++; @@ -436,51 +436,11 @@ namespace OpenMetaverse } finally { - if(IsRunningInbound && !sync) + if (IsRunningInbound && !sync) AsyncBeginReceive(); } } -/* not in use - public void AsyncBeginSend(UDPPacketBuffer buf) - { -// if (IsRunningOutbound) -// { - - // This is strictly for debugging purposes to simulate dropped - // packets when testing throttles & retransmission code - // if (DropOutgoingPacket()) - // return; - - try - { - m_udpSocket.BeginSendTo( - buf.Data, - 0, - buf.DataLength, - SocketFlags.None, - buf.RemoteEndPoint, - AsyncEndSend, - buf); - } - catch (SocketException) { } - catch (ObjectDisposedException) { } - // } - } - - void AsyncEndSend(IAsyncResult result) - { - try - { -// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState; - m_udpSocket.EndSendTo(result); - - UdpSends++; - } - catch (SocketException) { } - catch (ObjectDisposedException) { } - } -*/ public void SyncSend(UDPPacketBuffer buf) { if(buf.RemoteEndPoint == null)