mirror of
https://github.com/golang/go
synced 2024-11-20 04:54:44 -07:00
post-submit tweaks to previous cl
R=rsc DELTA=5 (4 added, 1 deleted, 0 changed) OCL=31690 CL=31692
This commit is contained in:
parent
9211a7d413
commit
dc8c447689
@ -43,8 +43,8 @@ func (client *Client) send(c *Call) {
|
||||
// Register this call.
|
||||
client.Lock();
|
||||
if client.shutdown != nil {
|
||||
client.Unlock();
|
||||
c.Error = client.shutdown;
|
||||
client.Unlock();
|
||||
doNotBlock := c.Done <- c;
|
||||
return;
|
||||
}
|
||||
@ -72,6 +72,9 @@ func (client *Client) serve() {
|
||||
response := new(Response);
|
||||
err = client.dec.Decode(response);
|
||||
if err != nil {
|
||||
if err == os.EOF {
|
||||
err = io.ErrUnexpectedEOF;
|
||||
}
|
||||
break
|
||||
}
|
||||
seq := response.Seq;
|
||||
|
Loading…
Reference in New Issue
Block a user