Merge pull request #3049 from cfromknecht/break-sync-send-server-quit

peer: break sendMessage on server quit
This commit is contained in:
Olaoluwa Osuntokun 2019-05-06 16:15:04 -07:00 committed by GitHub
commit 1d7d498d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}
}