1
0

Upload manager changes

This commit is contained in:
Scott E. Graves
2017-02-21 00:02:45 -06:00
parent 5db3f618bc
commit 19fb34b18f
3 changed files with 99 additions and 48 deletions

View File

@@ -232,6 +232,7 @@ private:
// If file isn't cached, delete from Sia only
if (!PathFileExists(cacheFilePath.c_str()) || ::DeleteFile(cacheFilePath.c_str()))
{
// TODO May not be necessary to delete, just queue another upload
if (!ApiSuccess(_siaApi->GetRenter()->DeleteFile(siaPath)))
{
ret = STATUS_INVALID_SERVER_STATE;