Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
network/stream: terminate runUpdateSyncing on peer quit (#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
janos authored and acud committed Aug 28, 2019
1 parent 8e8aefd commit e821eb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/stream/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ func (p *Peer) runUpdateSyncing() {
prevDepth = depth
case <-p.streamer.quit:
return
case <-p.quit:
return
}
}
}
Expand Down

0 comments on commit e821eb4

Please sign in to comment.