call reqRes.SetDone in grpc client

This commit is contained in:
Ethan Buchman 2016-06-22 14:25:18 -04:00
parent 73e5c3cb7b
commit 2c21c7be89
1 changed files with 1 additions and 0 deletions

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 {