[ApiAuth] Fix subscription callbacks when unsubscribe (#15194)
re-assigned the callback array to itself after running splice on it when a client unsubscribed from notifications.
This commit is contained in:
parent
c82a95e009
commit
5776542508
|
|
@ -148,7 +148,7 @@ export class AuthorizeService {
|
||||||
throw new Error(`Found an invalid number of subscriptions ${subscriptionIndex.length}`);
|
throw new Error(`Found an invalid number of subscriptions ${subscriptionIndex.length}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._callbacks = this._callbacks.splice(subscriptionIndex[0].index, 1);
|
this._callbacks.splice(subscriptionIndex[0].index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
notifySubscribers() {
|
notifySubscribers() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue