diff --git a/rxfingerprint/src/main/java/com/mtramin/rxfingerprint/FingerprintObservable.java b/rxfingerprint/src/main/java/com/mtramin/rxfingerprint/FingerprintObservable.java index 791c6dd..5111f17 100644 --- a/rxfingerprint/src/main/java/com/mtramin/rxfingerprint/FingerprintObservable.java +++ b/rxfingerprint/src/main/java/com/mtramin/rxfingerprint/FingerprintObservable.java @@ -80,7 +80,9 @@ private AuthenticationCallback createAuthenticationCallback(ObservableEmitter @Override public void onAuthenticationError(int errMsgId, CharSequence errString) { super.onAuthenticationError(errMsgId, errString); - emitter.onError(new FingerprintAuthenticationException(errString)); + if (!emitter.isDisposed()) { + emitter.onError(new FingerprintAuthenticationException(errString)); + } } @Override