mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-13 02:11:53 +00:00
Fix link panic when shutting down (closes #1168)
This commit is contained in:
parent
361b9fd6fc
commit
e138fa679c
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue