Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit e92f4b34 authored by tobiasKaminsky's avatar tobiasKaminsky Committed by AndyScherzinger
Browse files

fix bug preventing uploading the same large file twice

parent dbd3421b
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -161,8 +161,13 @@ public class ChunkedUploadRemoteFileOperation extends UploadRemoteFileOperation
            }

        } finally {
            if (this.isSuccess(status)) {
                SharedPreferences.Editor editor = sharedPref.edit();
                editor.remove(chunkId).apply();
            } else {
                SharedPreferences.Editor editor = sharedPref.edit();
                editor.putStringSet(chunkId, successfulChunks).apply();
            }

            if (channel != null)
                channel.close();