mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
if apicall failed - retry
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user