Skip to content

Commit 3f9c59f

Browse files
authored
fix: response future should close channel before callback (#1113)
1 parent 7ffb599 commit 3f9c59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/remote/remote_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ func (c *remotingClient) processCMD(cmd *RemotingCommand, r *tcpConnWrapper) {
231231
responseFuture := resp.(*ResponseFuture)
232232
go primitive.WithRecover(func() {
233233
responseFuture.ResponseCommand = cmd
234-
responseFuture.executeInvokeCallback()
235234
if responseFuture.Done != nil {
236235
close(responseFuture.Done)
237236
}
237+
responseFuture.executeInvokeCallback()
238238
})
239239
}
240240
} else {

0 commit comments

Comments
 (0)