Commit 064947f
committed
resource/udev: fix intermittent AttributeError in USBSDWireDevice
The control_serial attribute is conditionally declared which results
in an intermittent race condition during poll().
Initialize control_serial in __attrs_post_init__ to fix this and also
remove the unused control_path attribute.
Signed-off-by: Matt Porter <[email protected]>1 parent 4909e3a commit 064947f
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | 486 | | |
491 | 487 | | |
492 | 488 | | |
493 | 489 | | |
494 | 490 | | |
495 | 491 | | |
| 492 | + | |
496 | 493 | | |
497 | 494 | | |
498 | 495 | | |
| |||
510 | 507 | | |
511 | 508 | | |
512 | 509 | | |
513 | | - | |
| 510 | + | |
514 | 511 | | |
515 | 512 | | |
516 | 513 | | |
| |||
0 commit comments