Skip to content

Commit

Permalink
added retries to remove operation
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Jul 9, 2024
1 parent d441223 commit 389c08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class LauncherFileSystem {
if (keepLogs) throw new Error('Keeping logs across factory reset is currently not supported.');
console.log('after keep logs but before removing all data.');
try {
fs.rmSync(this.profileDataDir, { recursive: true });
fs.rmSync(this.profileDataDir, { recursive: true, maxRetries: 6, retryDelay: 500 });
} catch (e: any) {
console.error('Failed to remove directories: ', e);
console.error('Failed to remove directories (string): ', e.toString());
Expand Down

0 comments on commit 389c08b

Please sign in to comment.