You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Closing the app might lead to a crash due to an IllegalArgumentException
This commit is contained in:
@@ -193,7 +193,13 @@ public class PaymentsManager {
|
|||||||
|
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
if (mService != null) {
|
if (mService != null) {
|
||||||
|
try {
|
||||||
activity.unbindService(mServiceConn);
|
activity.unbindService(mServiceConn);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
// Somehow we've already been unbound. This is a non-fatal
|
||||||
|
// error.
|
||||||
|
Log.e(TAG, "Unable to unbind from payment service (already unbound)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mSetupDone = false;
|
mSetupDone = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user