mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
fix a crash when shutting down if no multicast interfaces are configured
This commit is contained in:
parent
1fbab17b37
commit
cfc1e6b83d
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ func (m *Multicast) _stop() error {
|
||||||
if m.platformhandler != nil {
|
if m.platformhandler != nil {
|
||||||
m.platformhandler.Stop()
|
m.platformhandler.Stop()
|
||||||
}
|
}
|
||||||
m.sock.Close()
|
if m.sock != nil {
|
||||||
|
m.sock.Close()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue