5
0
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 )

This commit is contained in:
Neil Alexander 2024-09-22 17:05:25 +01:00
parent 361b9fd6fc
commit e138fa679c
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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()
}
}
})
}