diff --git a/src/main.d b/src/main.d index 6bc0c112..d2819be2 100644 --- a/src/main.d +++ b/src/main.d @@ -577,7 +577,7 @@ int main(string[] args) // we already tried three times in the performSync routine // if we still have problems, then the sync handle might have // gone stale and we need to re-initialize the sync engine - log.log("Pesistent connection errors, reinitializing connection"); + log.log("Persistent connection errors, reinitializing connection"); sync.reset(); } } catch (CurlException e) { diff --git a/src/sync.d b/src/sync.d index 05e93501..557b1714 100644 --- a/src/sync.d +++ b/src/sync.d @@ -208,7 +208,7 @@ final class SyncEngine this.onedrive = onedrive; this.itemdb = itemdb; this.selectiveSync = selectiveSync; - session = UploadSession(onedrive, cfg.uploadStateFilePath); + // session = UploadSession(onedrive, cfg.uploadStateFilePath); } void reset() @@ -226,6 +226,8 @@ final class SyncEngine return; } + session = UploadSession(onedrive, cfg.uploadStateFilePath); + // Need to catch 400 or 5xx server side errors at initialization try { oneDriveDetails = onedrive.getDefaultDrive();