if apicall failed - retry

This commit is contained in:
josch
2014-12-06 11:04:04 +01:00
parent dd3291a9c4
commit 8468a39c0a
20 changed files with 579 additions and 211 deletions

View File

@@ -280,7 +280,7 @@ static void connect_mf(struct mediafirefs_user_options *options,
ctx->conn = mfconn_create(options->server, options->username,
options->password, options->app_id,
options->api_key);
options->api_key, 3);
if (ctx->conn == NULL) {
fprintf(stderr, "Cannot establish connection\n");

View File

@@ -426,6 +426,7 @@ int mediafirefs_release(const char *path, struct fuse_file_info *file_info)
folder_key = folder_tree_path_get_key(ctx->tree, ctx->conn, dir_name);
upload_key = NULL;
retval = mfconn_api_upload_simple(ctx->conn, folder_key,
fh, file_name, &upload_key);