Commit 91bdbf59 authored by Russ Cox's avatar Russ Cox

net/rpc: silence read error on closing connection

Fixes #3113.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5698056
parent 705ebf11
......@@ -140,7 +140,7 @@ func (client *Client) input() {
}
client.mutex.Unlock()
client.sending.Unlock()
if err != io.EOF || !closing {
if err != io.EOF && !closing {
log.Println("rpc: client protocol error:", err)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment