Browse Source

abci/grpc: fix invalid mutex handling in StopForError() (#5849)

Fixes #5840.
pull/5853/head
Erik Grinaker 4 years ago
committed by GitHub
parent
commit
1b18d26644
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      abci/client/grpc_client.go

+ 1
- 1
abci/client/grpc_client.go View File

@ -132,11 +132,11 @@ func (cli *grpcClient) OnStop() {
}
func (cli *grpcClient) StopForError(err error) {
cli.mtx.Lock()
if !cli.IsRunning() {
return
}
cli.mtx.Lock()
if cli.err == nil {
cli.err = err
}


Loading…
Cancel
Save