Skip to content

Commit

Permalink
Prevent deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
schmir committed Apr 19, 2021
1 parent e732e7b commit 49d297b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shuttermint/keyper/keyper.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ func (kpr *Keyper) Run() error {
}
kpr.world.Store(world)
kpr.runOneStep(ctx)
filter <- kpr.State.GetShutterFilter(world.MainChain)
select {
case filter <- kpr.State.GetShutterFilter(world.MainChain):
default:
}
}
}

Expand Down

0 comments on commit 49d297b

Please sign in to comment.