forked from TrueCloudLab/neoneo-go
Merge pull request #594 from nspcc-dev/fix/npe
network: fix NPE in logging, closes #593.
This commit is contained in:
commit
f796749658
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)
|
r := io.NewBinReaderFromIO(p.conn)
|
||||||
for {
|
for {
|
||||||
msg := &Message{}
|
msg := &Message{}
|
||||||
err := msg.Decode(r)
|
err = msg.Decode(r)
|
||||||
|
|
||||||
if err == payload.ErrTooManyHeaders {
|
if err == payload.ErrTooManyHeaders {
|
||||||
t.log.Warn("not all headers were processed")
|
t.log.Warn("not all headers were processed")
|
||||||
|
|
Loading…
Reference in a new issue