Release 2.6.2: disconnect AWG without freezing the UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -296,8 +296,7 @@ func (a *app) connectProfile(name string) error {
|
||||
}
|
||||
|
||||
func (a *app) disconnect() error {
|
||||
a.mu.Lock()
|
||||
defer a.mu.Unlock()
|
||||
// Do not hold a.mu across engine teardown — getState polling would freeze the UI.
|
||||
return a.mgr.Disconnect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user