From 1fc0bf8dc8eac267eb2db85416a35bcedb3c9359 Mon Sep 17 00:00:00 2001 From: "Jonathan Leibiusky @xetorthio" Date: Wed, 14 Jun 2017 09:48:40 -0300 Subject: [PATCH 1/2] Avoid stopping the world --- pwd/session.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwd/session.go b/pwd/session.go index 89d0ca2..5362be3 100644 --- a/pwd/session.go +++ b/pwd/session.go @@ -204,7 +204,8 @@ func (p *pwd) SessionLoadAndPrepare() error { for _, s := range sessions { // Connect PWD daemon to the new network if s.PwdIpAddress == "" { - return fmt.Errorf("Cannot load stored sessions as they don't have the pwd ip address stored with them") + log.Printf("Cannot load store session [%s] as they don't have the pwd ip address stored with them\n", s.PwdIpAddress) + continue } wg.Add(1) go func(s *Session) { From d87810b788c451c9098625abe41f5b07a63f4dc8 Mon Sep 17 00:00:00 2001 From: "Jonathan Leibiusky @xetorthio" Date: Wed, 14 Jun 2017 09:55:25 -0300 Subject: [PATCH 2/2] Missed the session ID --- pwd/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwd/session.go b/pwd/session.go index 5362be3..c6be9e4 100644 --- a/pwd/session.go +++ b/pwd/session.go @@ -204,7 +204,7 @@ func (p *pwd) SessionLoadAndPrepare() error { for _, s := range sessions { // Connect PWD daemon to the new network if s.PwdIpAddress == "" { - log.Printf("Cannot load store session [%s] as they don't have the pwd ip address stored with them\n", s.PwdIpAddress) + log.Printf("Cannot load store session [%s] as they don't have the pwd ip address stored with them\n", s.Id) continue } wg.Add(1)