fix: prevent the first-ever signature subscription from leaking (#29056)

This commit is contained in:
Steven Luscher 2022-12-02 15:09:42 -08:00 committed by GitHub
parent 34e5bf1b13
commit 9725a4552e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3712,7 +3712,7 @@ export class Connection {
disposeSignatureSubscriptionStateChangeObserver();
disposeSignatureSubscriptionStateChangeObserver = undefined;
}
if (signatureSubscriptionId) {
if (signatureSubscriptionId != null) {
this.removeSignatureListener(signatureSubscriptionId);
signatureSubscriptionId = undefined;
}