mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-23 03:11:35 +00:00
Merge pull request #594 from Arceliar/bugfix
fix a crash when shutting down if no multicast interfaces are configured
This commit is contained in:
commit
76adfd166a
@ -124,7 +124,9 @@ func (m *Multicast) _stop() error {
|
|||||||
if m.platformhandler != nil {
|
if m.platformhandler != nil {
|
||||||
m.platformhandler.Stop()
|
m.platformhandler.Stop()
|
||||||
}
|
}
|
||||||
|
if m.sock != nil {
|
||||||
m.sock.Close()
|
m.sock.Close()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user