diff options
author | Sean Templeton <seantempleton@outlook.com> | 2019-02-23 18:19:20 +0300 |
---|---|---|
committer | Sean Templeton <seantempleton@outlook.com> | 2019-03-06 06:25:29 +0300 |
commit | 13f83a22a110090de76b37b955e6cd7f89ca40fc (patch) | |
tree | 14cf69b2d2d64b1e2083b2cacb04f1c7a7190c7b /Duplicati/Library/Backend/Mega/MegaBackend.cs | |
parent | c3472823de5b0a2856c609a1317e46b1dc360972 (diff) |
Update Mega, OneDrive, and Rclone backends for async Put
Diffstat (limited to 'Duplicati/Library/Backend/Mega/MegaBackend.cs')
-rw-r--r-- | Duplicati/Library/Backend/Mega/MegaBackend.cs | 6 |
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)
|