mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-28 16:58:41 +01:00
Plugin teardown runs on the UI thread after the window is gone, and universal_ble can block it for many seconds (waiting for a pending connect to time out) or for good (a GATT Close that never returns). The Store health report shows these as hangs in universal_ble_plugin.dll during FlutterDesktopViewControllerDestroy. When the main window closes, a watchdog ends the process if it is still alive 3 seconds later. Nothing is left to save at that point, and Windows releases the Bluetooth handles with the process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>