Avoid stopping the world

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-14 09:48:40 -03:00
parent 3d08846ca1
commit 1fc0bf8dc8

View File

@@ -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) {