Fix chain: the bug ignoring taskReset.Stop() in rare case
@@ -488,6 +488,6 @@ func newTaskReset(chain *singleChain, gsfile string, height int64, blockHash []b
gsfile: gsfile,
height: height,
blockHash: blockHash,
- cancelCh: make(chan struct{}),
+ cancelCh: make(chan struct{}, 1),
}
}
