This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
consensus: avoid panic during shutdown
pull/8170/head
tycho garen
3 years ago
parent
3a75fbceec
commit
b4c295ed84
1 changed files
with
6 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
internal/consensus/state.go
+ 6
- 0
internal/consensus/state.go
View File
@ -874,6 +874,12 @@ func (cs *State) receiveRoutine(ctx context.Context, maxSteps int) {
if
err
,
ok
:=
r
.
(
error
)
;
ok
&&
errors
.
Is
(
err
,
autofile
.
ErrAutoFileClosed
)
{
if
err
,
ok
:=
r
.
(
error
)
;
ok
&&
errors
.
Is
(
err
,
autofile
.
ErrAutoFileClosed
)
{
return
return
}
}
// don't re-panic if we're already trying to
// shut down
if
ctx
.
Err
(
)
!=
nil
{
return
}
panic
(
r
)
panic
(
r
)
}
}
}
(
)
}
(
)
Write
Preview
Loading…
Cancel
Save