Skip to content

Commit

Permalink
A more robust gnirehtet check
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 18, 2024
1 parent 129e97b commit a394782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/engine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Engine {
await android._init();
this.android = android;

if (options.gnirehtet) {
if (options.gnirehtet === true) {
this.gnirehtet = new Gnirehtet(options);
await this.gnirehtet.start();
}
Expand Down Expand Up @@ -520,7 +520,7 @@ export class Engine {
}
}

if (options.gnirehtet && this.gnirehtet) {
if (options.gnirehtet === true && this.gnirehtet) {
await this.gnirehtet.stop();
}

Expand Down

0 comments on commit a394782

Please sign in to comment.