mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-01-03 13:47:47 +00:00
Fix link panic when shutting down (closes #1168)
This commit is contained in:
parent
361b9fd6fc
commit
e138fa679c
@ -108,8 +108,10 @@ func (l *links) shutdown() {
|
|||||||
_ = listener.listener.Close()
|
_ = listener.listener.Close()
|
||||||
}
|
}
|
||||||
for _, link := range l._links {
|
for _, link := range l._links {
|
||||||
|
if link._conn != nil {
|
||||||
_ = link._conn.Close()
|
_ = link._conn.Close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user