connection updates

This commit is contained in:
Mark Gregory
2026-10-19 10:59:43 +01:00
parent 1c30dc070d
commit 3c685eece7
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -523,7 +523,11 @@ enum NativeMySQLRunner {
}.value
}
// Connection shutdown may wait behind a slow network operation on the
// session's serial queue. Never make the SwiftUI main thread wait for it.
static func disconnect(profileID: UUID) {
PersistentMySQLSessions.shared.disconnect(profileID: profileID)
Task.detached(priority: .utility) {
PersistentMySQLSessions.shared.disconnect(profileID: profileID)
}
}
}