Skip to content

Commit

Permalink
fix: response future should close channel before callback (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
twz915 authored Dec 4, 2023
1 parent 7ffb599 commit 3f9c59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/remote/remote_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ func (c *remotingClient) processCMD(cmd *RemotingCommand, r *tcpConnWrapper) {
responseFuture := resp.(*ResponseFuture)
go primitive.WithRecover(func() {
responseFuture.ResponseCommand = cmd
responseFuture.executeInvokeCallback()
if responseFuture.Done != nil {
close(responseFuture.Done)
}
responseFuture.executeInvokeCallback()
})
}
} else {
Expand Down

0 comments on commit 3f9c59f

Please sign in to comment.