diff --git a/src/services/exportService.ts b/src/services/exportService.ts index 364a0ce45..f4702a262 100644 --- a/src/services/exportService.ts +++ b/src/services/exportService.ts @@ -163,11 +163,12 @@ class ExportService { exportDir ); const resp = await this.exportInProgress; - this.exportInProgress = null; return resp; } catch (e) { logError(e, 'exportFiles failed'); return { paused: false }; + } finally { + this.exportInProgress = null; } }