mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 07:20:39 +03:00
Fix Android multicast crash (#930)
* Do not exit on multicast errors (mobile) * Consistency with cmd/yggdrasil/main.go Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
This commit is contained in:
parent
16b8149052
commit
f8e626dbe1
@ -62,11 +62,8 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
|
|||||||
if len(m.config.MulticastInterfaces) > 0 {
|
if len(m.config.MulticastInterfaces) > 0 {
|
||||||
if err := m.multicast.Init(&m.core, m.config, logger, nil); err != nil {
|
if err := m.multicast.Init(&m.core, m.config, logger, nil); err != nil {
|
||||||
logger.Errorln("An error occurred initialising multicast:", err)
|
logger.Errorln("An error occurred initialising multicast:", err)
|
||||||
return err
|
} else if err := m.multicast.Start(); err != nil {
|
||||||
}
|
|
||||||
if err := m.multicast.Start(); err != nil {
|
|
||||||
logger.Errorln("An error occurred starting multicast:", err)
|
logger.Errorln("An error occurred starting multicast:", err)
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user