persistSession: check sess.Core.Agent() != nil before saving. silently skip sessions with no agent instead of logging 'no active session' error on shutdown. SaveSession: return nil (no-op) when there are no agents, rather than returning an error that gets logged. |
||
|---|---|---|
| .. | ||
| session.go | ||