Close a connection if sending fails. #438
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue