diff --git a/src/android/GooglePlus.java b/src/android/GooglePlus.java index c89e1450..e9e98f92 100644 --- a/src/android/GooglePlus.java +++ b/src/android/GooglePlus.java @@ -101,7 +101,13 @@ public boolean execute(String action, CordovaArgs args, CallbackContext callback } else if (ACTION_LOGOUT.equals(action)) { Log.i(TAG, "Trying to logout!"); - signOut(); + new AsyncTask() { + @Override + protected String doInBackground(String... params) { + signOut(); + return null; + } + }.execute(); } else if (ACTION_DISCONNECT.equals(action)) { Log.i(TAG, "Trying to disconnect the user");