(sessionID string, timeout time.Duration)
| 4041 | } |
| 4042 | |
| 4043 | func (d *integrationDaemon) waitForBlocked(sessionID string, timeout time.Duration) bool { |
| 4044 | d.mu.Lock() |
| 4045 | driver := d.driver |
| 4046 | manager := d.manager |
| 4047 | d.mu.Unlock() |
| 4048 | if driver == nil { |
| 4049 | return false |
| 4050 | } |
| 4051 | target := sessionID |
| 4052 | if manager != nil { |
| 4053 | if info, err := manager.Status( |
| 4054 | context.Background(), |
| 4055 | sessionID, |
| 4056 | ); err == nil && |
| 4057 | strings.TrimSpace(info.ACPSessionID) != "" { |
| 4058 | target = info.ACPSessionID |
| 4059 | } |
| 4060 | } |
| 4061 | return driver.waitForBlocked(target, timeout) |
| 4062 | } |
| 4063 | |
| 4064 | func (d *integrationDaemon) blockSession(sessionID string) (<-chan acp.AgentEvent, error) { |
| 4065 | d.mu.Lock() |
nothing calls this directly
no test coverage detected