mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
dont continue on error
This commit is contained in:
parent
3ab8ec880b
commit
409eea4063
1 changed files with 2 additions and 4 deletions
|
|
@ -1709,10 +1709,8 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
|
|||
return nil, receiptCtx.Err()
|
||||
|
||||
case err, ok := <-subErrCh:
|
||||
if !ok || err == nil {
|
||||
// subscription closed; disable this case
|
||||
subErrCh = nil
|
||||
continue
|
||||
if !ok {
|
||||
return nil, errors.New("chain subscription closed")
|
||||
}
|
||||
return nil, err
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue