mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
@@ -220,7 +220,11 @@ func (c *Client) WatchWorkspace(ctx context.Context, id uuid.UUID) (<-chan Works
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
wc <- ws
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case wc <- ws:
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user