Commit fb630f1
committed
fix: Address race condition and dependency compatibility issues
- Fix race condition between BLEInterface.close() and _on_ble_disconnect()
by checking self._closing flag to prevent concurrent BLEClient.close() calls
- Pin protobuf to ^4.25.3 and types-protobuf to ^4.25.3 for compatibility
- Prevent RuntimeError from concurrent access to BLEClient event loop
- Ensure close() has exclusive control over shutdown process once initiated
Critical fixes that prevent installation failures and runtime race conditions
during BLE interface disconnection scenarios.1 parent 342037c commit fb630f1
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments