move exportInProgress reset to finally block
This commit is contained in:
parent
489bf70925
commit
7940c023d0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue