mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Make sure URL connection is closed
This commit is contained in:
@@ -598,7 +598,7 @@ public class FragmentOAuth extends FragmentBase {
|
||||
try {
|
||||
int status = connection.getResponseCode();
|
||||
if (status != HttpsURLConnection.HTTP_OK)
|
||||
throw new FileNotFoundException("Error " + status + ":" + connection.getResponseMessage());
|
||||
throw new FileNotFoundException("Error " + status + ": " + connection.getResponseMessage());
|
||||
|
||||
String json = Helper.readStream(connection.getInputStream());
|
||||
Log.i("json=" + json);
|
||||
|
||||
Reference in New Issue
Block a user