mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-05-22 15:25:04 +00:00
71bc4ae82b
- Defer NimBLEDevice::deleteClient() in processPendingDisconnects() until after releasing _conn_mutex and waiting for any active write operations to complete. Prevents use-after-free when write() holds a child NimBLERemoteCharacteristic* pointer across the mutex boundary. - Add _conn_mutex protection to getConnectionCount(), isConnectedTo(), and isDeviceConnected() which read _connections without synchronization. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>