remove sessionInfo.doFunc, have the api just use phony.Block instead

This commit is contained in:
Arceliar 2019-08-29 21:59:28 -05:00
parent 1f658cce76
commit 7649ea0f9f
2 changed files with 1 additions and 17 deletions

View file

@ -227,18 +227,7 @@ func (c *Core) GetSessions() []Session {
}
copy(session.PublicKey[:], sinfo.theirPermPub[:])
}
var skip bool
func() {
defer func() {
if recover() != nil {
skip = true
}
}()
sinfo.doFunc(workerFunc)
}()
if skip {
continue
}
phony.Block(sinfo, workerFunc)
// TODO? skipped known but timed out sessions?
sessions = append(sessions, session)
}