Commit d2ea3cc
committed
fix: Prevent tearing down live client for stale disconnect events
- Add check to verify disconnect callback matches current client before cleanup
- Use getattr with default None to safely access bleak_client attribute
- Add debug logging when ignoring stale disconnect events
- Prevents accidental shutdown of freshly reconnected sessions when old disconnect events fire1 parent 3343670 commit d2ea3cc
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments