File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/owncloud/android/operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -998,8 +998,8 @@ private RemoteOperationResult normalUpload(OwnCloudClient client) {
998
998
if (result .isSuccess ()) {
999
999
if (temporalFile .length () == originalFile .length ()) {
1000
1000
// Acquire lock on temporary file
1001
- try (RandomAccessFile randomAccessFile = new RandomAccessFile (temporalFile .getAbsolutePath (), "rw" );
1002
- FileChannel tempChannel = randomAccessFile .getChannel ();
1001
+ try (RandomAccessFile randomAccessTemporalFile = new RandomAccessFile (temporalFile .getAbsolutePath (), "rw" );
1002
+ FileChannel tempChannel = randomAccessTemporalFile .getChannel ();
1003
1003
FileLock tempFileLock = tempChannel .tryLock ()) {
1004
1004
if (tempFileLock != null ) {
1005
1005
// Use the temporary channel for the upload
You can’t perform that action at this time.
0 commit comments