Skip to content

Commit

Permalink
Update src/flow-control/restart-process.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Jan 12, 2024
1 parent 14ba7a5 commit 597a1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flow-control/restart-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class RestartProcess implements FlowController {
scheduler?: Rx.SchedulerLike;
}) {
this.logger = logger;
this.delay = delay != null ? delay : 0;
this.delay = delay ?? 0;
this.tries = tries != null ? +tries : defaults.restartTries;
this.tries = this.tries < 0 ? Infinity : this.tries;
this.scheduler = scheduler;
Expand Down

0 comments on commit 597a1f8

Please sign in to comment.