diff options
Diffstat (limited to 'Duplicati/Library/Backend/FTP/FTPBackend.cs')
-rw-r--r-- | Duplicati/Library/Backend/FTP/FTPBackend.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/FTP/FTPBackend.cs b/Duplicati/Library/Backend/FTP/FTPBackend.cs index e5c2bbc2e..cabffc9dc 100644 --- a/Duplicati/Library/Backend/FTP/FTPBackend.cs +++ b/Duplicati/Library/Backend/FTP/FTPBackend.cs @@ -296,10 +296,10 @@ namespace Duplicati.Library.Backend }
}
- public Task PutAsync(string remotename, string localname, CancellationToken cancelToken)
+ public async Task PutAsync(string remotename, string localname, CancellationToken cancelToken)
{
using (System.IO.FileStream fs = System.IO.File.Open(localname, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read))
- return PutAsync(remotename, fs, cancelToken);
+ await PutAsync(remotename, fs, cancelToken);
}
public void Get(string remotename, System.IO.Stream output)
|