mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 05:41:13 +08:00
updated logic for join/leave network
This commit is contained in:
@@ -212,7 +212,12 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
||||
}
|
||||
}
|
||||
|
||||
daemon.Restart()
|
||||
if err := daemon.Restart(); err != nil {
|
||||
log.Println("daemon restart failed ", err)
|
||||
if err := daemon.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user