()
| 82 | m.mu.Lock() |
| 83 | if existing := m.sessions[sessionMapKey(principal.TenantID, sessionID)]; existing != nil { |
| 84 | m.mu.Unlock() |
| 85 | return existing, nil |
| 86 | } |
| 87 | m.mu.Unlock() |
| 88 | return m.createWithState(principal, sessionID, cwd, nil, true, fenceToken) |
| 89 | } |
| 90 | |
| 91 | func (m *SessionManager) Resume(sessionID, cwd string) (*SessionController, error) { |
no outgoing calls