mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Make sure URL connection is closed
This commit is contained in:
@@ -82,7 +82,7 @@ public class IPInfo {
|
||||
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 response = Helper.readStream(connection.getInputStream());
|
||||
organization.name = response.trim();
|
||||
|
||||
Reference in New Issue
Block a user