added state 98 as a terminal state

This commit is contained in:
root
2014-12-26 14:48:26 -06:00
parent 4b3ef3bf31
commit 397063b026
2 changed files with 6 additions and 2 deletions

View File

@@ -163,7 +163,9 @@ int filecache_upload_patch(const char *quickkey, uint64_t local_revision,
return -1;
}
fprintf(stderr, "status: %d, filerror: %d\n", status, fileerror);
if (status == 99) {
// values 98 and 99 are terminal states for a completed upload
if (status == 99 || status == 98) {
fprintf(stderr, "done\n");
break;
}

View File

@@ -517,7 +517,9 @@ int mediafirefs_release(const char *path, struct fuse_file_info *file_info)
return -1;
}
fprintf(stderr, "status: %d, filerror: %d\n", status, fileerror);
if (status == 99) {
// values 98 and 99 are terminal states for a completed upload
if (status == 99 || status == 98) {
fprintf(stderr, "done\n");
break;
}