mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
revert packet concatenation
This commit is contained in:
@@ -158,9 +158,12 @@ func (s *Session) sendLoop() {
|
|||||||
if s.closed {
|
if s.closed {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err := s.cryptConn.SendPacket(append(pkt.data, []byte{0x00, 0x10}...))
|
for len(s.sendPackets) > 0 {
|
||||||
if err != nil {
|
pkt = <-s.sendPackets
|
||||||
s.logger.Warn("Failed to send packet")
|
err := s.cryptConn.SendPacket(append(pkt.data, []byte{0x00, 0x10}...))
|
||||||
|
if err != nil {
|
||||||
|
s.logger.Warn("Failed to send packet")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
time.Sleep(time.Duration(_config.ErupeConfig.LoopDelay) * time.Millisecond)
|
time.Sleep(time.Duration(_config.ErupeConfig.LoopDelay) * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user