Browse Source

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

Fixes #5840.
pull/5893/head
Erik Grinaker 3 years ago
committed by Erik Grinaker
parent
commit
c2b5f8bc4a
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

@ -129,11 +129,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