Commit 3d0dd9b
transaction: Implement Card::reconnect() wrapper
This gives us access to Card::reconnect() from within a transaction so
that we can check the card status and reset it conditionally with no
interference from other processes.
This fixes a race condition I had between two processes where both
processes passed the status check resulting in two card resets.
Signed-off-by: Konrad Vité <[email protected]>1 parent f2cd1ba commit 3d0dd9b
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1687 | 1702 | | |
1688 | 1703 | | |
1689 | 1704 | | |
| |||
0 commit comments