Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Library/Backend/Mega/MegaBackend.cs')
-rw-r--r--Duplicati/Library/Backend/Mega/MegaBackend.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Duplicati/Library/Backend/Mega/MegaBackend.cs b/Duplicati/Library/Backend/Mega/MegaBackend.cs
index 52789316c..2eab7059c 100644
--- a/Duplicati/Library/Backend/Mega/MegaBackend.cs
+++ b/Duplicati/Library/Backend/Mega/MegaBackend.cs
@@ -142,14 +142,14 @@ namespace Duplicati.Library.Backend.Mega
#region IStreamingBackend implementation
- public Task Put(string remotename, System.IO.Stream stream, CancellationToken cancelToken)
+ public async Task Put(string remotename, System.IO.Stream stream, CancellationToken cancelToken)
{
try
{
if (m_filecache == null)
ResetFileCache();
- var el = Client.Upload(stream, remotename, CurrentFolder);
+ var el = await Client.UploadAsync(stream, remotename, CurrentFolder, null, null, cancelToken);
if (m_filecache.ContainsKey(remotename))
Delete(remotename);
@@ -161,8 +161,6 @@ namespace Duplicati.Library.Backend.Mega
m_filecache = null;
throw;
}
-
- return Task.FromResult(true);
}
public void Get(string remotename, System.IO.Stream stream)