This commit is contained in:
crusader 2017-11-01 19:29:27 +09:00
parent ef97f1fcd1
commit c6be50ff2c

View File

@ -255,11 +255,11 @@ func (c *client) rpcWriter(stopChan <-chan struct{}, writerDone chan<- error) {
}
}
err = c.ch.GetCodec().Write(c.conn, cs.Method, cs.Args, cs.ID)
if nil == cs.DoneChan {
releaseCallState(cs)
}
if err = c.ch.GetCodec().Write(c.conn, cs.Method, cs.Args, cs.ID); nil != err {
if nil != err {
err = fmt.Errorf("Client: Cannot send request to wire: [%s]", err)
return
}