p2p: return from conn send on stopped mconn

This commit is contained in:
William Banfield
2022-06-29 18:15:10 -04:00
parent 978f754ad3
commit f32941828a

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