mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
[service] check for error returned by impl
otherwise, we mark it as started when it is not in fact
This commit is contained in:
@ -94,6 +94,11 @@ func (bs *BaseService) Start() (bool, error) {
|
||||
}
|
||||
}
|
||||
err := bs.impl.OnStart()
|
||||
if err != nil {
|
||||
// revert flag
|
||||
atomic.StoreUint32(&bs.started, 0)
|
||||
return false, err
|
||||
}
|
||||
return true, err
|
||||
} else {
|
||||
if bs.log != nil {
|
||||
|
Reference in New Issue
Block a user