Merge pull request #3049 from cfromknecht/break-sync-send-server-quit
peer: break sendMessage on server quit
This commit is contained in:
commit
1d7d498d01
2
peer.go
2
peer.go
@ -2502,6 +2502,8 @@ func (p *peer) sendMessage(sync, priority bool, msgs ...lnwire.Message) error {
|
||||
return err
|
||||
case <-p.quit:
|
||||
return lnpeer.ErrPeerExiting
|
||||
case <-p.server.quit:
|
||||
return lnpeer.ErrPeerExiting
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user