You've already forked joplin
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user