Skip to content

Commit

Permalink
fix: prevent the first-ever signature subscription from leaking (sola…
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored and nickfrosty committed Jan 4, 2023
1 parent 2194f1c commit d72cf22
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 d72cf22

Please sign in to comment.