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: don't wait for wal if conS not running
pull/192/head
Ethan Buchman
9 years ago
parent
05af306a8d
commit
085b3bc1f2
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
consensus/state.go
+1
-1
consensus/wal.go
+ 1
- 1
consensus/state.go
View File
@ -319,7 +319,7 @@ func (cs *ConsensusState) startRoutines(maxSteps int) {
func
(
cs
*
ConsensusState
)
OnStop
(
)
{
cs
.
QuitService
.
OnStop
(
)
if
cs
.
wal
!=
nil
{
if
cs
.
wal
!=
nil
&&
cs
.
IsRunning
(
)
{
cs
.
wal
.
Wait
(
)
}
}
+ 1
- 1
consensus/wal.go
View File
@ -80,7 +80,7 @@ func (wal *WAL) Save(msg ConsensusLogMessageInterface) {
}
}
// Must not be called concurrently.
// Must not be called concurrently
with a write
.
func
(
wal
*
WAL
)
Close
(
)
{
if
wal
!=
nil
{
wal
.
fp
.
Close
(
)
Write
Preview
Loading…
Cancel
Save