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 570fa1d commit f599765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 f599765

Please sign in to comment.