Commit 9ebd4b1
committed
fix(android): prevent race condition in concurrent permission requests
- Add check to reject new requests while one is pending
- Prevent promise overwriting that causes hanging promises
- Return clear error message for concurrent requests
- Ensure all callers receive a response1 parent 9cd69a2 commit 9ebd4b1
File tree
1 file changed
+9
-0
lines changed- android/src/main/java/com/pushpendersingh/reactnativescanner
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| |||
0 commit comments