Skip to content

Commit

Permalink
fix: prevent the first-ever signature subscription from leaking (#29056)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Dec 2, 2022
1 parent 34e5bf1 commit 9725a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.js/src/connection.ts
Expand Up @@ -3712,7 +3712,7 @@ export class Connection {
disposeSignatureSubscriptionStateChangeObserver();
disposeSignatureSubscriptionStateChangeObserver = undefined;
}
if (signatureSubscriptionId) {
if (signatureSubscriptionId != null) {
this.removeSignatureListener(signatureSubscriptionId);
signatureSubscriptionId = undefined;
}
Expand Down

0 comments on commit 9725a45

Please sign in to comment.