Skip to content

Commit

Permalink
Fix error caused by rpc client concurrency. (#1579)
Browse files Browse the repository at this point in the history
Co-authored-by: yangheran <heran.yang@seafile.com>
  • Loading branch information
feiniks and yangheran authored Nov 13, 2024
1 parent 11fce07 commit 0022936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/rpc-client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int SeafileRpcClient::listLocalRepos(std::vector<LocalRepo> *result)

for (size_t i = 0; i < (*result).size(); i++) {
LocalRepo& repo = (*result)[i];
repo.account = seafApplet->accountManager()->getAccountByRepo(repo.id);
repo.account = seafApplet->accountManager()->getAccountByRepo(repo.id, this);
}

g_list_foreach (repos, (GFunc)g_object_unref, NULL);
Expand Down

0 comments on commit 0022936

Please sign in to comment.