Skip to content
Snippets Groups Projects
Commit 994ca738 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix seg fault

parent a3042cfa
Branches
Tags
2 merge requests!233Modify restore to call user-defined bindings callback. Add Sent requests to...,!231Revert "Update store to print changes to the partners list"
......@@ -111,12 +111,14 @@ func NewManager(client *api.Client, single *single.Manager) (*Manager, error) {
// already registered facts into store.
func NewManagerFromBackup(client *api.Client, single *single.Manager,
email, phone fact.Fact) (*Manager, error) {
jww.INFO.Println("ud.NewManager()")
jww.INFO.Println("ud.NewManagerFromBackup()")
if client.NetworkFollowerStatus() != api.Running {
return nil, errors.New(
"cannot start UD Manager when network follower is not running.")
}
registered := uint32(0)
m := &Manager{
client: client,
comms: client.GetComms(),
......@@ -125,6 +127,7 @@ func NewManagerFromBackup(client *api.Client, single *single.Manager,
storage: client.GetStorage(),
net: client.GetNetworkInterface(),
single: single,
registered: &registered,
}
err := m.client.GetStorage().GetUd().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment