mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
Close even if we don't have a connection
This commit is contained in:
parent
5b84b72d15
commit
7fdea0dd93
7
model.go
7
model.go
@ -196,10 +196,11 @@ func (m *Model) Close(node string, err error) {
|
||||
defer m.Unlock()
|
||||
|
||||
conn, ok := m.rawConn[node]
|
||||
if !ok {
|
||||
return
|
||||
if ok {
|
||||
conn.Close()
|
||||
} else {
|
||||
warnln("Close on unknown connection for node", node)
|
||||
}
|
||||
conn.Close()
|
||||
|
||||
if err != nil {
|
||||
warnf("Disconnected from node %s: %v", node, err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user