Skip to content

Commit 45da58a

Browse files
authored
fix(android): avoid crashes from concurrent native resource releases (#204)
1 parent f1d136f commit 45da58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/hieuvp/fingerprint/ReactNativeFingerprintScannerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void authenticate(String title, String subtitle, String description, Stri
210210
}
211211

212212
@ReactMethod
213-
public void release() {
213+
public synchronized void release() {
214214
if (requiresLegacyAuthentication()) {
215215
getFingerprintIdentify().cancelIdentify();
216216
mFingerprintIdentify = null;

0 commit comments

Comments
 (0)