flutter_reactive_ble
flutter_reactive_ble copied to clipboard
ConnectionQueue can get stuck permanently without a way to recover
It is possible that plugin is stuck forever upon receiving lots of connection requests from different device. After thorough investigation it looks like the culprit is the ConnectionQueue that ended up stuck with some dead/orphaned connections that never recover on their own (which is a different story.. potentially requiring diving deeper in RxAndroidBle) and even though the client already lost interest for these connnections and requested a disconnection (and these items are removed from activeConnections in RxBleClient), objects in the queue stay forever.