mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
network: fix NPE in logging
This commit is contained in:
parent
565c1940e3
commit
f3921ea3bd
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (t *TCPTransport) handleConn(conn net.Conn) {
|
|||
r := io.NewBinReaderFromIO(p.conn)
|
||||
for {
|
||||
msg := &Message{}
|
||||
err := msg.Decode(r)
|
||||
err = msg.Decode(r)
|
||||
|
||||
if err == payload.ErrTooManyHeaders {
|
||||
t.log.Warn("not all headers were processed")
|
||||
|
|
Loading…
Reference in a new issue