mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
Msg bug
This commit is contained in:
parent
6fe69bc6b1
commit
934402e97d
@ -200,7 +200,7 @@ func (s *Conn) GetMsgContent(link *Link) (content []byte, err error) {
|
|||||||
s.Lock()
|
s.Lock()
|
||||||
defer s.Unlock()
|
defer s.Unlock()
|
||||||
buf := pool.BufPoolCopy.Get().([]byte)
|
buf := pool.BufPoolCopy.Get().([]byte)
|
||||||
if n, err := s.ReadFrom(buf, link.De, link.Crypt, link.Rate); err == nil && n > 4 {
|
if n, err := s.ReadFrom(buf, link.De, link.Crypt, link.Rate); err == nil {
|
||||||
content = buf[:n]
|
content = buf[:n]
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user