From 97439a121e1199344b986a81ecfe8e5a3f29c4af Mon Sep 17 00:00:00 2001 From: Tolriq Date: Mon, 30 Jun 2014 11:39:14 +0200 Subject: [PATCH] Catch a rare timing crash. --- library/src/org/onepf/oms/appstore/GooglePlay.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/src/org/onepf/oms/appstore/GooglePlay.java b/library/src/org/onepf/oms/appstore/GooglePlay.java index 2c5d8228..93dab7b5 100644 --- a/library/src/org/onepf/oms/appstore/GooglePlay.java +++ b/library/src/org/onepf/oms/appstore/GooglePlay.java @@ -112,7 +112,10 @@ public void onServiceConnected(ComponentName name, IBinder service) { Log.e(TAG, "isBillingAvailable() RemoteException while setting up in-app billing", e); } finally { latch.countDown(); - context.unbindService(this); + try { + context.unbindService(this); + } catch (Exception ignore) { + } } }