mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 20:30:43 +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()
|
||||
defer s.Unlock()
|
||||
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]
|
||||
}
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user