mirror of
https://github.com/nextcloud/android.git
synced 2024-12-21 00:12:05 +03:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
2921419aa1
1 changed files with 8 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class PrintAsyncTask extends AsyncTask<Void, Void, Boolean> {
|
|||
HttpClient client = new HttpClient();
|
||||
GetMethod getMethod = null;
|
||||
|
||||
FileOutputStream fos;
|
||||
FileOutputStream fos = null;
|
||||
try {
|
||||
getMethod = new GetMethod(url);
|
||||
int status = client.executeMethod(getMethod);
|
||||
|
@ -123,6 +123,13 @@ public class PrintAsyncTask extends AsyncTask<Void, Void, Boolean> {
|
|||
if (getMethod != null) {
|
||||
getMethod.releaseConnection();
|
||||
}
|
||||
if (fos != null) {
|
||||
try {
|
||||
fos.close();
|
||||
} catch (IOException e) {
|
||||
Log_OC.e(TAG, "Error closing file output stream", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
|
|
Loading…
Reference in a new issue