Close a connection if sending fails. #438

Merged
sarah merged 2 commits from send into master 2022-03-29 19:16:48 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit a39775d56b - Show all commits

View File

@ -155,7 +155,7 @@ func (pa *PeerApp) SendMessage(message model2.PeerMessage) error {
if err == nil {
err = pa.connection.Send(serialized)
// at this point we have tried to send a connection to a peer only to find that something went wrong.
// at this point we have tried to send a message to a peer only to find that something went wrong.
// we don't know *what* went wrong - the most likely explanation is the peer went offline in the time between
// sending the message and it arriving in the engine to be sent. Other explanations include problems with Tor,
// a dropped wifi connection.