[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:
hermanho 2019-10-24 17:14:09 +08:00 committed by Javier Calvarro Nelson
parent c82a95e009
commit 5776542508
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ export class AuthorizeService {
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() {