diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/javispedro/rempe/Device.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/com/javispedro/rempe/Device.java b/app/src/main/java/com/javispedro/rempe/Device.java index 9258393..f4f2cce 100644 --- a/app/src/main/java/com/javispedro/rempe/Device.java +++ b/app/src/main/java/com/javispedro/rempe/Device.java @@ -177,6 +177,9 @@ public class Device { mCurState = initialDeviceState; if (resultCode == RequestAccessResult.SUCCESS) { setEnvPcc(result); + } else { + mEnvPccHandle.close(); + mEnvPccHandle = null; } if (mObserver != null) { mObserver.onDeviceSearchFinished(resultCode); |