mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
eth/syncer: fix negative wg
This commit is contained in:
parent
9402641ee9
commit
9fb9be5aa1
1 changed files with 1 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ func (s *Syncer) run() {
|
|||
|
||||
// Start launches the synchronization service.
|
||||
func (s *Syncer) Start() error {
|
||||
s.wg.Add(1)
|
||||
go s.run()
|
||||
if s.target == (common.Hash{}) {
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue