mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-12 19:15:47 +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…
Reference in New Issue
Block a user