p2p: return from conn send on stopped mconn (#8904)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
This commit is contained in:
William Banfield
2022-07-06 10:41:55 -04:00
committed by GitHub
parent 047d7c927b
commit da83edc588

View File

@@ -807,6 +807,8 @@ func (ch *Channel) sendBytes(bytes []byte) bool {
return true
case <-time.After(defaultSendTimeout):
return false
case <-ch.conn.Quit():
return false
}
}