Skip to content

Commit 9537775

Browse files
committed
usbipd: wait for bind to complete before attaching
1 parent 45e748f commit 9537775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/usbipd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ impl UsbDevice {
179179

180180
if !self.is_bound() {
181181
self.bind(false)?;
182+
self.wait(|d| d.is_some_and(|d| d.is_bound()))?;
182183
}
183184

184185
let args = if version().major < 4 {

0 commit comments

Comments
 (0)