diff options
author | UbitUmarov | 2019-03-17 19:00:02 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-17 19:00:02 +0000 |
commit | 9ccca71c1b13ed4e12c739774ca703cfafed5480 (patch) | |
tree | df04ffa354159b2f75495f3f9b6ddd08ffa2006b /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | lludp: direct encode PacketAck, StartPingCheck and CompletePingCheck (diff) | |
download | opensim-SC-9ccca71c1b13ed4e12c739774ca703cfafed5480.zip opensim-SC-9ccca71c1b13ed4e12c739774ca703cfafed5480.tar.gz opensim-SC-9ccca71c1b13ed4e12c739774ca703cfafed5480.tar.bz2 opensim-SC-9ccca71c1b13ed4e12c739774ca703cfafed5480.tar.xz |
remove redundant code
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 4f4bb61..1004b07 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -1891,19 +1891,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1891 | OutPacket(payPriceReply, ThrottleOutPacketType.Task); | 1891 | OutPacket(payPriceReply, ThrottleOutPacketType.Task); |
1892 | } | 1892 | } |
1893 | 1893 | ||
1894 | public void SendStartPingCheck(byte seq) | ||
1895 | { | ||
1896 | StartPingCheckPacket pc = (StartPingCheckPacket)PacketPool.Instance.GetPacket(PacketType.StartPingCheck); | ||
1897 | pc.Header.Reliable = false; | ||
1898 | |||
1899 | pc.PingID.PingID = seq; | ||
1900 | // We *could* get OldestUnacked, but it would hurt performance and not provide any benefit | ||
1901 | pc.PingID.OldestUnacked = 0; | ||
1902 | |||
1903 | OutPacket(pc, ThrottleOutPacketType.Unknown); | ||
1904 | UDPClient.m_lastStartpingTimeMS = Util.EnvironmentTickCount(); | ||
1905 | } | ||
1906 | |||
1907 | public void SendKillObject(List<uint> localIDs) | 1894 | public void SendKillObject(List<uint> localIDs) |
1908 | { | 1895 | { |
1909 | // foreach (uint id in localIDs) | 1896 | // foreach (uint id in localIDs) |
@@ -8236,7 +8223,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
8236 | private bool HandleAgentResume(IClientAPI sender, Packet Pack) | 8223 | private bool HandleAgentResume(IClientAPI sender, Packet Pack) |
8237 | { | 8224 | { |
8238 | m_udpClient.IsPaused = false; | 8225 | m_udpClient.IsPaused = false; |
8239 | SendStartPingCheck(m_udpClient.CurrentPingSequence++); | 8226 | m_udpServer.SendPing(m_udpClient); |
8240 | return true; | 8227 | return true; |
8241 | } | 8228 | } |
8242 | 8229 | ||