Skip to content

Commit

Permalink
problem: deadlock in messagepacker
Browse files Browse the repository at this point in the history
  • Loading branch information
stanstacks committed Feb 7, 2023
1 parent ac9f99e commit 889718d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/messagepack/nostrMessagepacker.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func Start(terminate chan struct{}, wg *sync.WaitGroup) {
}

func shutdown() {
deadlock.Opts.Disable = true
SealBlock(mindmachine.CurrentState().Processing.Height)
mut.Lock() //don't unlock, we are shutting down and don't want to pack any more messages
}

0 comments on commit 889718d

Please sign in to comment.