Release 2.6.2: disconnect AWG without freezing the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-29 15:50:14 +03:00
co-authored by Cursor
parent 4ecfb9bed7
commit 6255a0d39b
22 changed files with 109 additions and 55 deletions
+1 -2
View File
@@ -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()
}