X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/48f13c8adc5c4b9bc4ca96bf13939a7d7cfae562..e4bc3bdadc47c01e88dd1de94a4666d3753ee90e:/src/com/owncloud/android/files/services/InstantUploadService.java diff --git a/src/com/owncloud/android/files/services/InstantUploadService.java b/src/com/owncloud/android/files/services/InstantUploadService.java index 4b8393d8..e7d28ffe 100644 --- a/src/com/owncloud/android/files/services/InstantUploadService.java +++ b/src/com/owncloud/android/files/services/InstantUploadService.java @@ -128,7 +128,11 @@ public class InstantUploadService extends Service { WebdavClient wdc = OwnCloudClientUtils.createOwnCloudClient(account, getApplicationContext()); wdc.createDirectory(INSTANT_UPLOAD_DIR); // fail could just mean that it already exists; put will be tried anyway - wdc.putFile(filepath, INSTANT_UPLOAD_DIR + "/" + filename, mimetype); + try { + wdc.putFile(filepath, INSTANT_UPLOAD_DIR + "/" + filename, mimetype); + } catch (Exception e) { + // nothing to do; this service is deprecated, indeed + } } } }