Skip to content

Commit

Permalink
Adding a nil check to net.go.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoatsouza committed Sep 18, 2018
1 parent 88c4622 commit 0a0770a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ func outgoing(c *client) {
DEBUG.Println(NET, "obound priority msg to write, type", reflect.TypeOf(msg.p))
if err := msg.p.Write(c.conn); err != nil {
ERROR.Println(NET, "outgoing stopped with error", err)
msg.t.setError(err)
if msg.t != nil {
msg.t.setError(err)
}
signalError(c.errors, err)
return
}
Expand Down

0 comments on commit 0a0770a

Please sign in to comment.