Skip to content

Commit e821eb4

Browse files
janosacud
authored andcommitted
network/stream: terminate runUpdateSyncing on peer quit (ethersphere#1696)
1 parent 8e8aefd commit e821eb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

network/stream/peer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ func (p *Peer) runUpdateSyncing() {
451451
prevDepth = depth
452452
case <-p.streamer.quit:
453453
return
454+
case <-p.quit:
455+
return
454456
}
455457
}
456458
}

0 commit comments

Comments
 (0)