MCPcopy Index your code
hub / github.com/coder/coder / setCoordDisconnected

Method setCoordDisconnected

agent/agent.go:1958–1967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1956}
1957
1958func (a *agent) setCoordDisconnected() chan struct{} {
1959 a.closeMutex.Lock()
1960 defer a.closeMutex.Unlock()
1961 if a.closing {
1962 return nil
1963 }
1964 disconnected := make(chan struct{})
1965 a.coordDisconnected = disconnected
1966 return disconnected
1967}
1968
1969// runDERPMapSubscriber runs a coordinator and returns if a reconnect should occur.
1970func (a *agent) runDERPMapSubscriber(ctx context.Context, tClient tailnetproto.DRPCTailnetClient24, network *tailnet.Conn) (retErr error) {

Callers 1

runCoordinatorMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected