Skip to content

Commit

Permalink
fix: add connextUpdate listener when not operational
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Ranna committed May 7, 2020
1 parent 8d39862 commit 3ef792e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swaps/SwapClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ class SwapClientManager extends EventEmitter {
}
});
}
if (this.connextClient?.isOperational()) {
if (this.connextClient && !this.connextClient.isDisabled() && !this.connextClient.isMisconfigured()) {
this.connextClient.on('htlcAccepted', (rHash, amount, currency) => {
this.emit('htlcAccepted', this.connextClient!, rHash, amount, currency);
});
Expand Down

0 comments on commit 3ef792e

Please sign in to comment.