Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 16, 2016
1 parent d552626 commit 06f03d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sess.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,11 @@ func (s *UDPSession) kcpInput(data []byte) {
if n := s.kcp.PeekSize(); n > 0 {
s.notifyReadEvent()
}
s.mu.Unlock()

if s.ackNoDelay {
s.mu.Lock()
s.kcp.current = currentMs()
s.kcp.flush()
s.mu.Unlock()
}
s.mu.Unlock()
atomic.AddUint64(&DefaultSnmp.InSegs, 1)
}

Expand Down

0 comments on commit 06f03d2

Please sign in to comment.