isClosed returns whether the API is closed or not.
()
| 2097 | |
| 2098 | // isClosed returns whether the API is closed or not. |
| 2099 | func (a *agent) isClosed() bool { |
| 2100 | return a.hardCtx.Err() != nil |
| 2101 | } |
| 2102 | |
| 2103 | func (a *agent) requireNetwork() (*tailnet.Conn, bool) { |
| 2104 | a.closeMutex.Lock() |
no test coverage detected