Add missing close

This commit is contained in:
Audrius Butkevicius 2015-10-12 17:10:59 +01:00
parent 240e7b0835
commit 2972472179

View File

@ -78,6 +78,7 @@ func (c *ProtocolClient) Serve() {
}
if err := c.conn.SetDeadline(time.Time{}); err != nil {
c.conn.Close()
l.Infoln("Relay set deadline:", err)
return
}