mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
set writeConn to nil when conn is closed on readErr
This commit is contained in:
parent
fc7e0fe6c7
commit
f0febb61fb
1 changed files with 1 additions and 0 deletions
|
|
@ -555,6 +555,7 @@ func (c *Client) dispatch(codec ServerCodec) {
|
||||||
conn.handler.log.Debug("RPC connection read error", "err", err)
|
conn.handler.log.Debug("RPC connection read error", "err", err)
|
||||||
conn.close(err, lastOp)
|
conn.close(err, lastOp)
|
||||||
reading = false
|
reading = false
|
||||||
|
c.writeConn = nil
|
||||||
|
|
||||||
// Reconnect:
|
// Reconnect:
|
||||||
case newcodec := <-c.reconnected:
|
case newcodec := <-c.reconnected:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue