Commit bd2a95c
committed
fix(usb): check ports only for new device attachments
Check USBIP port availability only when device is added for the first time
(existingStatus == nil). Once a device has a status, the attach request was
already sent and ports were available at that time. This prevents devices
from getting stuck if ports are exhausted mid-flight while DRA processes the
request.
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>1 parent 0c92718 commit bd2a95c
1 file changed
Lines changed: 4 additions & 6 deletions
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
172 | 170 | | |
173 | 171 | | |
174 | 172 | | |
| |||
0 commit comments