Skip to content

Commit 06f03d2

Browse files
committed
upd
1 parent d552626 commit 06f03d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sess.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,14 +561,11 @@ func (s *UDPSession) kcpInput(data []byte) {
561561
if n := s.kcp.PeekSize(); n > 0 {
562562
s.notifyReadEvent()
563563
}
564-
s.mu.Unlock()
565-
566564
if s.ackNoDelay {
567-
s.mu.Lock()
568565
s.kcp.current = currentMs()
569566
s.kcp.flush()
570-
s.mu.Unlock()
571567
}
568+
s.mu.Unlock()
572569
atomic.AddUint64(&DefaultSnmp.InSegs, 1)
573570
}
574571

0 commit comments

Comments
 (0)