mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: shut down serving queue
This commit is contained in:
parent
bd460f3deb
commit
591f861d3d
1 changed files with 4 additions and 0 deletions
|
|
@ -211,6 +211,10 @@ func (pm *ProtocolManager) Stop() {
|
||||||
|
|
||||||
close(pm.quitSync) // quits syncer, fetcher
|
close(pm.quitSync) // quits syncer, fetcher
|
||||||
|
|
||||||
|
if pm.servingQueue != nil {
|
||||||
|
pm.servingQueue.stop()
|
||||||
|
}
|
||||||
|
|
||||||
// Disconnect existing sessions.
|
// Disconnect existing sessions.
|
||||||
// This also closes the gate for any new registrations on the peer set.
|
// This also closes the gate for any new registrations on the peer set.
|
||||||
// sessions which are already established but not added to pm.peers yet
|
// sessions which are already established but not added to pm.peers yet
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue