Skip to content
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.

Commit

Permalink
call reqRes.SetDone in grpc client
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Jun 22, 2016
1 parent 73e5c3c commit 2c21c7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/grpc_client.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 2c21c7b

Please sign in to comment.