diff --git a/Habitica/src/com/habitrpg/android/habitica/APIHelper.java b/Habitica/src/com/habitrpg/android/habitica/APIHelper.java index 4086c938d..8fe472d5e 100644 --- a/Habitica/src/com/habitrpg/android/habitica/APIHelper.java +++ b/Habitica/src/com/habitrpg/android/habitica/APIHelper.java @@ -182,12 +182,7 @@ public class APIHelper implements ErrorHandler, Profiler { @Override public Throwable handleError(RetrofitError cause) { - retrofit.client.Response res = cause.getResponse(); - - if (res != null) { - retrofit.mime.TypedInput body = res.getBody(); - } - + //It also handles timeouts if (cause.getKind().equals(RetrofitError.Kind.NETWORK)) { final Activity activity = (Activity) this.mContext; activity.runOnUiThread(new Runnable() { @@ -227,7 +222,7 @@ public class APIHelper implements ErrorHandler, Profiler { private class ATaskGetUser extends AsyncTask { private OnHabitsAPIResult callback; private HostConfig config; - + public ATaskGetUser(OnHabitsAPIResult callback, HostConfig config) { this.callback = callback; this.config=config;