mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
Add missing close
This commit is contained in:
parent
240e7b0835
commit
2972472179
@ -78,6 +78,7 @@ func (c *ProtocolClient) Serve() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := c.conn.SetDeadline(time.Time{}); err != nil {
|
if err := c.conn.SetDeadline(time.Time{}); err != nil {
|
||||||
|
c.conn.Close()
|
||||||
l.Infoln("Relay set deadline:", err)
|
l.Infoln("Relay set deadline:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user