Fix link panic when shutting down (closes #1168)

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,8 +108,10 @@ func (l *links) shutdown() {
_ = listener.listener.Close()
}
for _, link := range l._links {
if link._conn != nil {
_ = link._conn.Close()
}
}
})
}