Browse Source

call reqRes.SetDone in grpc client

pull/1780/head
Ethan Buchman 8 years ago
parent
commit
2c21c7be89
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      client/grpc_client.go

+ 1
- 0
client/grpc_client.go View File

@ -197,6 +197,7 @@ func (cli *grpcClient) finishAsyncCall(req *types.Request, res *types.Response)
reqres := NewReqRes(req)
reqres.Response = res // Set response
reqres.Done() // Release waiters
reqres.SetDone() // so reqRes.SetCallback will run the callback
// Notify reqRes listener if set
if cb := reqres.GetCallback(); cb != nil {


Loading…
Cancel
Save