1
0
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:
Rob Pike 2009-07-15 12:38:50 -07:00
parent 9211a7d413
commit dc8c447689

View File

@ -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;