Commit 6b70880
committed
aioble/server: Fix _init_capture() guard to match _server_shutdown()
_server_shutdown() guards on _capture_task and deletes all four capture
attributes. _init_capture() guarded on _capture_queue, creating a
mismatch: if _capture_task was missing but _capture_queue persisted
(partial teardown), _init_capture() would no-op and the capture task
would never be recreated, leaving captured writes silently undelivered.
Guard on _capture_task instead, and clean up any orphaned attributes
before reinitializing.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent 3eaf027 commit 6b70880
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
| 110 | + | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
0 commit comments