1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Desktop, Cli, Mobile: Ensure that sync process ends up properly when Joplin Server shares cannot be accessed

This commit is contained in:
Laurent Cozic
2025-10-29 13:05:40 +01:00
parent 1fad9ca1cc
commit 42d8df3036

View File

@@ -457,6 +457,11 @@ export default class Synchronizer {
}
}
let errorToThrow = null;
let syncLock = null;
let hasCaughtError = false;
try {
// Before synchronising make sure all share_id properties are set
// correctly so as to share/unshare the right items.
try {
@@ -476,11 +481,6 @@ export default class Synchronizer {
const itemUploader = new ItemUploader(this.api(), this.apiCall);
let errorToThrow = null;
let syncLock = null;
let hasCaughtError = false;
try {
await this.api().initialize();
this.api().setTempDirName(Dirnames.Temp);