mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
fix: Panic when loading coordination override (#4152)
This was broken because of browser-only. This should fix it! Signed-off-by: Kyle Carberry <kyle@carberry.com> Signed-off-by: Kyle Carberry <kyle@carberry.com>
This commit is contained in:
@ -405,8 +405,11 @@ func (api *API) workspaceAgentClientCoordinate(rw http.ResponseWriter, r *http.R
|
||||
}
|
||||
// This is used by Enterprise code to control the functionality of this route.
|
||||
override := api.WorkspaceClientCoordinateOverride.Load()
|
||||
if override != nil && (*override)(rw) {
|
||||
return
|
||||
if override != nil {
|
||||
overrideFunc := *override
|
||||
if overrideFunc != nil && overrideFunc(rw) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
api.websocketWaitMutex.Lock()
|
||||
|
Reference in New Issue
Block a user