4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-20 17:47:14 +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:
Neil Alexander
2019-10-26 00:50:34 +01:00
committed by GitHub

View File

@ -124,7 +124,9 @@ func (m *Multicast) _stop() error {
if m.platformhandler != nil {
m.platformhandler.Stop()
}
m.sock.Close()
if m.sock != nil {
m.sock.Close()
}
return nil
}