Correctly exit if error in scraping instead of endless loop
This commit is contained in:
parent
2b035b6975
commit
b4d37fbc3f
|
@ -99,9 +99,11 @@ public class FbPageScraper extends AsyncTask<Void, Void, Void> {
|
|||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
this.error = R.string.error_connection;
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
this.error = R.string.error_unknown;
|
||||
return null;
|
||||
}
|
||||
} while (url != null);
|
||||
|
||||
|
|
Loading…
Reference in New Issue