mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +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:
parent
1703194b02
commit
bd7346191f
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue