File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -62,5 +62,8 @@ export class TelemetryConsent {
62
62
async pageHandler ( ) {
63
63
await fs . writeFile ( this . lockFile , 'Do not remove this file. It prohibits showing the analytics dialog.' ) ;
64
64
this . resolve ( ) ;
65
+ if ( this . loader && ! this . loader . isDestroyed ( ) ) {
66
+ this . loader . close ( ) ;
67
+ }
65
68
}
66
69
}
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ export class DataStore {
169
169
ipcMain . removeAllListeners ( 'data-transport-ready' ) ;
170
170
ipcMain . removeAllListeners ( 'data-receiver-ready' ) ;
171
171
ipcMain . removeAllListeners ( 'db-error' ) ;
172
+ if ( this . loader && ! this . loader . isDestroyed ( ) ) {
173
+ this . loader . close ( ) ;
174
+ }
172
175
173
176
await fs . writeFile ( this . lockFile , 'Do not remove this file. Removing it may cause inconsistency in the data store.' ) ;
174
177
const tmpExists = await fs . pathExists ( this . migrationExport ) ;
You can’t perform that action at this time.
0 commit comments