1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 08:11:17 +00:00

Also check for 401 status code in case GUI password is set (fixes #261).

This seems to break the web GUI, which apparently does not support
authentification.
This commit is contained in:
Felix Ableitner 2015-03-21 22:10:48 +01:00
parent 1703194b02
commit bd7346191f

View file

@ -45,12 +45,10 @@ public abstract class PollWebGuiAvailableTask extends AsyncTask<String, Void, Vo
} catch (HttpHostConnectException e) {
// We catch this in every call, as long as the service is not online,
// so we ignore and continue.
} catch (IOException e) {
Log.w(TAG, "Failed to poll for web interface", e);
} catch (InterruptedException e) {
} catch (IOException|InterruptedException e) {
Log.w(TAG, "Failed to poll for web interface", e);
}
} while (status != HttpStatus.SC_OK);
} while (status != HttpStatus.SC_OK && status != HttpStatus.SC_UNAUTHORIZED);
return null;
}