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