Merge pull request #18 from xetorthio/jonas_master

Don't stop loading if session IP is missing
This commit is contained in:
Jonathan Leibiusky
2017-06-14 09:56:34 -03:00
committed by GitHub

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.Id)
continue
}
wg.Add(1)
go func(s *Session) {