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 gnapoli23 committed Dec 16, 2022
1 parent 29389eb commit 67376b7
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 67376b7

Please sign in to comment.