mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +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 {
|
||||
c.conn.Close()
|
||||
l.Infoln("Relay set deadline:", err)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user