Skip to content

Commit

Permalink
fix(lndclient): set status disabled when disabled
Browse files Browse the repository at this point in the history
This fixes an oversight where we were leaving the `ClientStatus` for lnd
as not initialized when it's actually disabled.
  • Loading branch information
sangaman committed Apr 15, 2019
1 parent cd489b8 commit 2cff6f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lndclient/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class LndClient extends BaseClient {
shouldDisable = true;
}
if (shouldDisable) {
this.setStatus(ClientStatus.Disabled);
return;
}

Expand Down

0 comments on commit 2cff6f0

Please sign in to comment.