diff options
author | Ganesh Vanahalli <ganesh.vanahalli@algorand.com> | 2022-06-14 15:08:59 -0400 |
---|---|---|
committer | Ganesh Vanahalli <ganesh.vanahalli@algorand.com> | 2022-06-14 15:08:59 -0400 |
commit | 625840203039227cd91cb7c19beb25e97b433853 (patch) | |
tree | 6199119b22ffec23b418726b5bd38e90f596555c | |
parent | 12607ca72f531cfd6e4c3b3b931a9879b8da884e (diff) |
bug fixpause-on-round
-rw-r--r-- | catchup/service.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catchup/service.go b/catchup/service.go index 5161f853f..86ed01c5e 100644 --- a/catchup/service.go +++ b/catchup/service.go @@ -409,7 +409,7 @@ func (s *Service) PauseOrResume(rnd uint64) (err error) { return } // only allow to set pauseAtRound one at a time - if len(s.chanPauseAtRound) == cap(s.chanPauseAtRound) { + if s.chanPauseAtRound != nil && len(s.chanPauseAtRound) == cap(s.chanPauseAtRound) { err = errors.New("not allowed to pause: already has a pause number") return } |