Skip to content

Commit

Permalink
fix: response future should close channel before callback
Browse files Browse the repository at this point in the history
  • Loading branch information
twz915 authored Nov 28, 2023
1 parent 7ae83c4 commit 4aa8c78
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 @@ -230,10 +230,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 4aa8c78

Please sign in to comment.