Skip to content

Commit

Permalink
Merge pull request #535 from murDDock/dev
Browse files Browse the repository at this point in the history
fix(remote_client):avoid goroutine leak
  • Loading branch information
xujianhai666 authored Nov 26, 2020
2 parents faeac3f + 06ef9b6 commit 99c88b4
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 @@ -194,7 +194,7 @@ func (c *remotingClient) processCMD(cmd *RemotingCommand, r *tcpConnWrapper) {
responseFuture.ResponseCommand = cmd
responseFuture.executeInvokeCallback()
if responseFuture.Done != nil {
responseFuture.Done <- true
close(responseFuture.Done)
}
})
}
Expand Down

0 comments on commit 99c88b4

Please sign in to comment.